Codebird-PHP 3.0.0, which is now in beta, supports accessing the Ads API. It looks like this:
$reply = $cb->ads_accounts_ACCOUNT_ID_cards_appDownload([
'account_id' => '123456789',
'name' => 'Test',
'app_country_code' => 'DE'
]);
Multiple-method API calls
In the Twitter Ads API, there are multiple methods that can be reached by HTTP GET, POST, PUT and/or DELETE. While Codebird does its best to guess which HTTP verb you’ll want to use, it’s the safest bet to give a hint yourself, like this:
$reply = $cb->ads_sandbox_accounts_ACCOUNT_ID_cards_imageConversation_CARD_ID([
'httpmethod' => 'DELETE',
'account_id' => '123456789',
'card_id' => '2468013579'
]);
Codebird will remove the httpmethod parameter from the parameters list automatically, and set the corresponding HTTP verb.
More info on Codebird-PHP & download at: