New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

node-tradedesk

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-tradedesk

Library for interfacing with TradeDesk's API v3.0.

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-80%
Maintainers
1
Weekly downloads
 
Created
Source

#node-tradedesk

Description

node-tradedesk is a node.js module for interacting with The Trade Desk's API. View the API's documentation at https://apis.thetradedesk.com/v3/doc

Example

A token is necessary for all API calls. The module can either be instantianted with a previously obtained token:

var Tradedesk = require('./lib/tradedesk');
var client = Tradedesk({token: 'thetoken'});

client.get('adgroup/query/facets', function(error, x, res) {
  if (error) throw error;
  console.log(x);
});

Or, if a token hasn't been retrieved yet:

var Tradedesk = require('./lib/tradedesk');
var client = Tradedesk();

client.getAuthToken('username', 'password', function(token) {
  client.setAuthToken(token);
  client.get('adgroup/query/facets', function(error, x, res) {
    if (error) throw error;
    console.log(x);
  });

  client.post('contract/query/partner/available', {partnerid: 'xxxxx',
              PageStartIndex: 0, PageSize: 0}, function(error, x ,res) {
    if (error) throw error;
    console.log(x);
  });
});

FAQs

Package last updated on 27 May 2015

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc