1.1.1 • Published 6 years ago

adnxs-api v1.1.1

Weekly downloads
9
License
MIT
Repository
github
Last release
6 years ago

Build Status NPM Version NPM Downloads

adnxs-api

adnxs-api is an AppNexus client

Install

$ npm install adnxs-api --save

Examples

Authorization

	const { Client } =  require('adnxs-api');

	const client = new Client();

	client
	.authorize('FFD', 'xxxxxxx')
	.then(function(token){
		//Do something funky..
		console.log(token)
	})
	.catch(function(err){
		console.log(err.stack)
	});

Request all active campaigns

	const { Client, endpoints } =  require('adnxs-api');

	const client = new Client();

	client
	.authorize('FFD', 'xxxxxxx') // optional
 	.then(function(token){
		return client.get(endpoints.CAMPAIGN_SERVICE, {state: 'active'});
	})
	.then(function(resp){
		console.log(resp)
	})
	.catch(function(err){
		console.log(err.stack)
	});
1.1.1

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago