Skip to content

gladyshev/yandex-direct-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Dmitry Gladyshev
May 3, 2017
cd10db5 · May 3, 2017

History

66 Commits
Dec 11, 2016
Apr 13, 2017
Apr 13, 2017
May 3, 2017
May 3, 2017
Dec 10, 2016
Dec 11, 2016
Dec 12, 2016
Apr 13, 2017
Dec 10, 2016
Apr 3, 2017
Apr 13, 2017
Jan 14, 2017
Apr 4, 2017

Repository files navigation

Yandex Direct API v5 PHP client

Удобный PHP-клиент Yandex.Direct API с поддержкой PSR-7 и PSR-3.

Build Status Scrutinizer Code Coverage Scrutinizer Code Quality

Требования

  • PHP 5.6 и выше

Установка

В файле composer.json:

{
    ...
    "require": {
        ...
        "gladyshev/yandex-direct-client": "*"
    }
    ...
}

Использование

use Yandex\Direct\Client;

$api = new Client('***login***', '***token***');

$response = $api->campaigns->get(
    ['Ids' => [123545345, 23423234]],  // SelectionCriteria
    ['Status', 'Currency', 'Funds']    // FieldNames
);

print_r($response);
  
// [
//     'request_id' => 1234567890,
//     'units' => [
//         'debit' => 10, 
//         'limit' => 50,
//         'rest' => 100500
//     ],
//     'result' => [...]
// ]