2017 © Pedro Peláez
 

library 2performant-php

image

2performant/2performant-php

  • Saturday, July 28, 2018
  • by 2Performant
  • Repository
  • 14 Watchers
  • 11 Stars
  • 866 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 9 Forks
  • 0 Open issues
  • 8 Versions
  • 1 % Grown

The README.md

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., (*1)

The API is RESTful JSON over HTTP using all four verbs (GET/POST/PUT/DELETE) using Guzzle as a HTTP client., (*2)

API documentation can be found at: http://doc.2performant.com/, (*3)

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., (*4)

Installation

It's recommended to install the library using Composer., (*5)

    curl -sS https://getcomposer.org/installer | php

Then, install the library (along with its dependencies), (*6)

    php composer.phar require 2Performant/2Performant-php

After that, use the composer autoloader in your PHP script, (*7)

    <?php

    require 'vendor/autoload.php';

All done! Now you can use the classes provided, included in the TPerformant\API namespace., (*8)

Usage Examples

Interacting with 2Performant is very easy., (*9)

First you log in, (*10)

    // As an advertiser
    use TPerformant\API\HTTP\Advertiser;

    ...

    $me = new Advertiser('affiliate.manager@somecompany.com', 'password'); // fill in with your own credentials

    $commissions = $me->getCommissions();

    // or as an affiliate
    use TPerformant\API\HTTP\Affiliate;

    ...

    $me = new Affiliate('awesome.affiliate@affiliatesite.com', '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, (*11)

Commom issues

If you encounter issues with SSL (certificate-related connection problems), please try updating your cURL CA root certificates., (*12)

Reporting Problems

If you encounters any problems don't hesitate to contact us at: support (at) 2performant.com, (*13)

The Versions

28/07 2018

dev-fix_list_for_advertiser

dev-fix_list_for_advertiser

  Sources   Download

07/11 2017

1.0

1.0.0.0 http://github.com/2Parale/2Performant-PHP

PHP wrapper for 2Performant API

  Sources   Download

MIT

The Requires

 

api php rest http 2performant

07/11 2017

dev-master

9999999-dev http://github.com/2Parale/2Performant-PHP

PHP wrapper for 2Performant API

  Sources   Download

MIT

The Requires

 

api php rest http 2performant

07/11 2017

1.0-beta4

1.0.0.0-beta4 http://github.com/2Parale/2Performant-PHP

PHP wrapper for 2Performant API

  Sources   Download

MIT

The Requires

 

api php rest http 2performant

24/08 2016

dev-1.0-wip

dev-1.0-wip http://github.com/2Parale/2Performant-PHP

PHP wrapper for 2Performant API

  Sources   Download

MIT

The Requires

 

api php rest http 2performant

10/08 2016

1.0-beta.3

1.0.0.0-beta3 http://github.com/2Parale/2Performant-PHP

PHP wrapper for 2Performant API

  Sources   Download

MIT

The Requires

 

api php rest http 2performant

03/08 2016

1.0-beta.2

1.0.0.0-beta2 http://github.com/2Parale/2Performant-PHP

PHP wrapper for 2Performant API

  Sources   Download

MIT

The Requires

 

api php rest http 2performant

22/07 2016

1.0-beta.1

1.0.0.0-beta1 http://github.com/2Parale/2Performant-PHP

PHP wrapper for 2Performant API

  Sources   Download

MIT

The Requires

 

api php rest http 2performant