1.0.6 • Published 7 years ago
yandex-direct-api v1.0.6
Yandex Direct API wrapper
If you found this package useful, please star it.
Also you may like to Tweet about it or share at Facebook.
Usage
token: '8NsFV5UwJ5tnxA9hLcOYfFNNoFfOSQOl', // required.
locale: 'en', // optional; default is 'en'.
live: false, // optional; default is false.
sandbox: false, // optional; default is false.
version: 4, // optional; default is 4.
url: 'https://' optional; your custom url.
ecmascript style
const YandexDirectApi = require('yandex-direct-api');
// API
let api = YandexDirectApi({
token: '8NsFV5UwJ5tnxA9hLcOYfFNNoFfOSQOl'
});
// Request without params
api.call('GetVersion', (err, data) => {
console.log(err, data);
});
// Request with params
api.call('GetCampaignParams', {CampaignID: 06892638}, (err, data) => {
console.log(err, data);
});