Download the PHP package s1lviu/2performant-public-data without Composer
On this page you can find all versions of the php package s1lviu/2performant-public-data. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download s1lviu/2performant-public-data
More information about s1lviu/2performant-public-data
Files in s1lviu/2performant-public-data
Package 2performant-public-data
Short Description PHP wrapper for 2Performant API
License MIT
Homepage http://github.com/2Parale/2Performant-PHP
Informations about the package 2performant-public-data
2Performant PHP API
The API allows you to integrate any 2Performant network in your application. It's goal is to make sure developers can implement anything that can be done via the web interface using API functions.
The API is RESTful JSON over HTTP using all four verbs (GET/POST/PUT/DELETE) using Guzzle as a HTTP client.
API documentation can be found at: http://doc.2performant.com/
The PHP wrapper uses camelCase
notation rather than the underscore_notation
used in the HTTP API, but changes are transparent to the user using the wrapper.
Installation
It's recommended to install the library using Composer.
curl -sS https://getcomposer.org/installer | php
Then, install the library (along with its dependencies)
php composer.phar require 2Performant/2Performant-php
After that, use the composer autoloader in your PHP script
<?php
require 'vendor/autoload.php';
All done! Now you can use the classes provided, included in the TPerformant\API
namespace.
Usage Examples
Interacting with 2Performant is very easy.
First you log in
// As an advertiser
use TPerformant\API\HTTP\Advertiser;
...
$me = new Advertiser('[email protected]', 'password'); // fill in with your own credentials
$commissions = $me->getCommissions();
// or as an affiliate
use TPerformant\API\HTTP\Affiliate;
...
$me = new Affiliate('[email protected]', 'password'); // fill in with your own credentials
$commissions = $me->getCommissions();
For details about each API function the documentation can be found at: https://github.com/2Parale/2Performant-php/wiki
Reporting Problems
If you encounters any problems don't hesitate to contact us at: support (at) 2performant.com