2017 © Pedro Peláez
 

library tracker-client

Tracker API client

image

linkprofit-cpa/tracker-client

Tracker API client

  • Tuesday, June 26, 2018
  • by Phrlog
  • Repository
  • 3 Watchers
  • 0 Stars
  • 24 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 11 Versions
  • 100 % Grown

The README.md

Tracker Client

Latest Stable Version Build Status Scrutinizer Code Quality Code Coverage License, (*1)

Описание

Библиотека для взаимодействия с API трекера cpa-сети LINKPROFIT, (*2)

Установка

composer require linkprofit-cpa/tracker-client, (*3)

Пример

Создание соединения

$connection = new \linkprofit\Tracker\Connection();

/* указываем параметры соединения */
$connection->userName = '';
$connection->userPassword = '';
$connection->apiUrl = '';
$connection->accessLevel = \linkprofit\Tracker\AccessLevel::USER;

/* создаем клиент и подключаемся к трекеру */
$client = new \linkprofit\Tracker\Client($connection);
$client->connect();

Формируем запросы

Для офферов, (*4)

Для пользователей, (*5)

Для категорий, (*6)

Выполняем запросы и получаем данные

$response = $client->exec($route);
$response->handle();

Дополнительные параметры

Вы можете использовать кеш, отвечающий PSR-16 стандарту simple-cache, (*7)

$client->setCache($client->getDefaultFileCache());

Вы можете создать свой ResponseHandler, который имплементит ResponseHandlerInterface, трансформирующий ответ сервера в нужный вам формат. По умолчанию используется ArrayResponseHandler., (*8)

$client->setResponseHandler(new ArrayResponseHandler());

Лицензия

This project is licensed under the MIT License - see the LICENSE.md file for details, (*9)

The Versions

26/06 2018

dev-master

9999999-dev https://github.com/linkprofit-cpa/tracker-client

Tracker API client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Khatin Konstantin

api tracker

26/06 2018

0.4.0

0.4.0.0 https://github.com/linkprofit-cpa/tracker-client

Tracker API client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Khatin Konstantin

api tracker

26/06 2018

dev-dev

dev-dev https://github.com/linkprofit-cpa/tracker-client

Tracker API client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Khatin Konstantin

api tracker

10/05 2018

0.3.1

0.3.1.0 https://github.com/linkprofit-cpa/tracker-client

Tracker API client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Khatin Konstantin

api tracker

04/05 2018

0.3.0

0.3.0.0 https://github.com/linkprofit-cpa/tracker-client

Tracker API client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Khatin Konstantin

api tracker

23/04 2018

0.2.2

0.2.2.0 https://github.com/linkprofit-cpa/tracker-client

Tracker API client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Khatin Konstantin

api tracker

23/04 2018

0.2.1

0.2.1.0 https://github.com/linkprofit-cpa/tracker-client

Tracker API client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Khatin Konstantin

api tracker

18/04 2018

dev-feature/TEAMD-31

dev-feature/TEAMD-31 https://github.com/linkprofit-cpa/tracker-client

Tracker API client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Khatin Konstantin

api tracker

18/04 2018

0.2.0

0.2.0.0 https://github.com/linkprofit-cpa/tracker-client

Tracker API client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Khatin Konstantin

api tracker

17/04 2018

0.1.1

0.1.1.0 https://github.com/linkprofit-cpa/tracker-client

Tracker API client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Khatin Konstantin

api tracker

17/04 2018

0.1.0

0.1.0.0 https://github.com/linkprofit-cpa/tracker-client

Tracker API client

  Sources   Download

MIT

The Requires

 

The Development Requires

by Khatin Konstantin

api tracker