Socket
Socket
Sign inDemoInstall

yandex-direct

Package Overview
Dependencies
24
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    yandex-direct

Wrapper allows an easy interaction with the Yandex Direct API.


Version published
Weekly downloads
0
Maintainers
1
Install size
1.35 MB
Created
Weekly downloads
 

Readme

Source

Yandex Direct API wrapper 0.1.1

Wrapper for Yandex Direct API (JSON) http://api.yandex.com/direct/

Usage

var YandexDirect = require('yandex-direct');

var api = YandexDirect({
    token: '09d9ae29555d44f836020e286d99892', // required.
    locale: en, // optional; default is 'en'.
    live: true, // optional; default is false.
    sandbox: false, // optional; default is false.
    version: 4 // optional; default is 4.
    url: 'http://url.com' // optional; instead of 'live', 'sandbox', 'version' you can put this. Considering for tests.
});

// Request without params.
api.call('GetVersion', function(err, data){
    // data == 4;
    //do something
});

// Request with params.
api.call('GetCampaignParams', {CampaignID: 1111111}, function(err, data){
    // data is CampaignInfo
});

Keywords

FAQs

Last updated on 20 Dec 2013

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc