digitouch / adform-php-sdk
AdForm APIs Client for PHP based on Guzzle
1.0.8
2017-08-30 13:19 UTC
Requires
- php: ^5.6 || ^7.0 || ^7.1
- guzzlehttp/guzzle: ~6.0
Requires (Dev)
- phpunit/phpunit: ^5.7
- symfony/var-dumper: ^3.2
README
The AdForm SDK for PHP to access AdForm's API
Installation
$ composer require digitouch/adform-php-sdk
Usage
$api = new ApiFactory(new HttpClient);
$ticket = $api->auth('<username>', '<password>');
$result = $api->call(ApiFactory::ADVERTISERS, $ticket, ['Names' => '<name-filter>']);
Examples
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
Endpoints
Currently implemented Endpoints:
Run Tests
Use [Composer] to download dependencies:
$ composer install
Then run:
$ ./vendor/bin/phpunit