0.0.6 • Published 7 years ago

node-criteo-api v0.0.6

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

Criteo Node SDK

Node Api for Criteo Build Status Coverage Status

Installation

npm install node-criteo-api

Usage

You will need a username/password + token to use the api

var Criteo = require('node-criteo-api');
var client = new Criteo(username, password, token);


client.getCampaigns({campaignStatus: 'RUNNING'}, (error, campaigns) => {
    console.log(error, campaigns);
});

Options

You can also specify options as a fourth parameter

var client = new Criteo(username, password, token, {
    source: 'node-criteo-api', //the "source" parameter, the criteo "user agent"
    version: 'v201305' //the version of the api
});

Testing

To run the tests, you need to set some environmental variables. Only about 10% of the tests will run without the following environmental variables

CRITEO_API_USERNAME,
CRITEO_API_PASSWORD,
CRITEO_API_TOKEN

then run

npm test
0.0.6

7 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago