The AdForm SDK for PHP to access AdForm's API
$ composer require digitouch/adform-php-sdk
$api = new ApiFactory(new HttpClient);
$ticket = $api->auth('<username>', '<password>');
$result = $api->call(ApiFactory::ADVERTISERS, $ticket, ['Names' => '<name-filter>']);
Same code examples are located in the "examples" dir. Find and rename config.php.dist to config.php and edit with your AdForm credentials. Finally run with:
$ php examples/advertisers.php
Currently implemented Endpoints:
Use [Composer] to download dependencies:
$ composer install
Then run:
$ ./vendor/bin/phpunit