postRequest(array('url' => 'trstx.com/messages'), array('from'=>'test@trstx.com', 'to'=>'travis.swientek@rackspace.com', 'subject' => 'test', 'text' => 'asdf', 'o:testmode'=>true)); echo $client->getRequest(array('url' => 'trstx.com/unsubscribes'), array()); echo $client->postRequest(array('url' => 'trstx.com/unsubscribes'), array('address' => 'travis@whatever.com', 'tag' => '*')); echo $client->postRequest(array('url' => 'trstx.com/bounces'), array('address' => 'travis@whatever.com')); echo $client->deleteRequest(array('url' => 'trstx.com/bounces/travis@whatever.com')); */ require('Mailgun/Common/Messages.php'); $message = new Mailgun\Common\Message(); $message->setCampaignId("My-Super-Awesome-Campaign"); var_dump($message->getCampaignId()); ?>