1.1.1 • Published 5 years ago

adnxs-api v1.1.1

Weekly downloads
9
License
MIT
Repository
github
Last release
5 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

5 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.1.6

9 years ago

0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago