2017 © Pedro PelĆ”ez
 

library adzerk

The PHP client for Adzerk REST API

image

positivezero/adzerk

The PHP client for Adzerk REST API

  • Tuesday, December 13, 2016
  • by positivezero
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6,103 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

adzerk

PHP Client for Adzerk REST API

Adzerk thin client (https://github.com/positivezero/adzerk), (*1)

Copyright (c) 2013 PositiveZero ltd. (http://www.positivezero.co.uk), (*2)

For the full copyright and license information, please view the file license.md that was distributed with this source code., (*3)

API: https://github.com/adzerk/adzerk-api/wiki, (*4)

Usage:, (*5)

$adzerk = new Adzerk(API_KEY)
$response = $adzerk->site()->get();

First of all, you have to select api method (advertiser, channel, site etc.). All methods are documented in Adzerk class annotation., (*6)

example:, (*7)

$adzerk->advertiser
$adzerk->channel
$adzerk->site
...

This will return Adzerk\Wrapper object, which do rest - Send curl request and return response. @see \Positivezero\RestClient, (*8)

$adzerk->channel()->create()
$adzerk->channel(/*optional*/ $id)->get()
$adzerk->channel($id)->update()
$adzerk->channel($id)->delete()

You have to define all required properties in annotation. Validation before post/put is automatic., (*9)

example of list all Channels, (*10)

$list = $adzerk->channel()->get();

or get some spcecific item, (*11)

$list = $adzerk->channel(5541)->get();

example of creating Channel:, (*12)

$object = $adzerk->channel();
$object->Id = 0;
$object->Title = 'Some name';
$object->AdTypes = array(1,3,4);
$object->Engine = 'CPM';
$object->CPM   = 10.00;
$response = $object->create();

example of updating Channel:, (*13)

$object = $adzerk->channel(5541);
$object->Title = 'Some name';
$object->CPM   = 10.00;
$response = $object->update();

example of removing Channel:, (*14)

$object = $adzerk->channel(5541);
$object->delete();

it will generate endpoint url like:, (*15)

http://api.adzerk.net/v1/channel/15311

and put this object as string:, (*16)

channel={"Id":15311,"Title":"Some name","AdTypes":[1,3,4],"Engine":"CPM","CPM":10}

All responses are returned by default, as an associative PHP array, (*17)

The Versions

13/12 2016

dev-master

9999999-dev https://github.com/positivezero/adzerk

The PHP client for Adzerk REST API

  Sources   Download

BSD 3-Clause

The Requires

 

api php library client adzerk

13/12 2016

0.1.2

0.1.2.0 https://github.com/positivezero/adzerk

The PHP client for Adzerk REST API

  Sources   Download

BSD 3-Clause

The Requires

 

api php library client adzerk

13/12 2016

01

01.0.0.0 https://github.com/positivezero/adzerk

The PHP client for Adzerk REST API

  Sources   Download

BSD 3-Clause

The Requires

 

api php library client adzerk

03/06 2014

v0.1.1

0.1.1.0 https://github.com/positivezero/adzerk

The PHP client for Adzerk REST API

  Sources   Download

BSD 3-Clause

The Requires

 

api php library client adzerk

17/04 2014

0.1.1

0.1.1.0 https://github.com/positivezero/adzerk

The PHP client for Adzerk REST API

  Sources   Download

BSD 3-Clause

The Requires

 

api php library client adzerk

17/12 2013

v0.1

0.1.0.0 https://github.com/positivezero/adzerk

The PHP client for Adzerk REST API

  Sources   Download

BSD 3-Clause

The Requires

 

api php library client adzerk