digitouch/adform-php-sdk

AdForm APIs Client for PHP based on Guzzle

1.0.8 2017-08-30 13:19 UTC

This package is not auto-updated.

Last update: 2024-11-22 23:45:29 UTC


README

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