1.0.6 • Published 7 years ago

yandex-direct-api v1.0.6

Weekly downloads
8
License
MIT
Repository
github
Last release
7 years ago

Yandex Direct API wrapper

yandex-direct-api

More info en

More info ru


Donate license

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);
});
1.0.6

7 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago