Note: The name entry is used in all the other API calls to identify a app.
For a list of all the apps and parameters accesible with the Web API you can check the Filter Settings page.
<?xml version="1.0" encoding="ISO-8859-1"?><filters><filter><name>twitter</name><title>Twitter</title><description>This plugin allows you to send an email message to twitter</description><activated>0</activated></filter> ...
</filters>
<?php$url='sendgrid.com';$user='username';$pass='password';$params=array('api_user'=>$user,'api_key'=>$pass,'name'=>'twitter','username'=>'twitterusername','password'=>'twitterpassword',);$request=$url.'/api/filter.setup.xml';// Generate curl request$session=curl_init($request);// Tell curl to use HTTP POSTcurl_setopt($session,CURLOPT_POST,true);// Tell curl that this is the body of the POSTcurl_setopt($session,CURLOPT_POSTFIELDS,$params);// Tell curl not to return headers, but do return the responsecurl_setopt($session,CURLOPT_HEADER,false);curl_setopt($session,CURLOPT_RETURNTRANSFER,true);// obtain response$response=curl_exec($session);curl_close($session);// print everything outprint_r($response);?>