Skip to content

Lightweight and useful Yandex Direct API version 5 client

License

Notifications You must be signed in to change notification settings

satmaelstorm/yandex-direct-client

 
 

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' => [...]
// ]

About

Lightweight and useful Yandex Direct API version 5 client

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%