Skip to content

Latest commit

 

History

History
47 lines (38 loc) · 1.56 KB

README.md

File metadata and controls

47 lines (38 loc) · 1.56 KB

AdForm SDK for PHP

Build Status Latest Stable Version

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