You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

awin-api

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

awin-api

API integration with Awin

0.2.0
latest
Source
npm
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

Awin API

npm package

API integration with Awin

Install

$ npm install awin-api

Get ConnectID and SecretKey

Usage

"use strict";

let Awin = require("awin-api"),
    awin = new Awin("connectid", "secretkey");

awin.programs({region: "BR"}, function(err, result){
    console.log(result.programItems.programItem);
});

awin.programapplications({region: "BR"}, function(err, result){
    console.log(result.programApplicationItems.programApplicationItem);
});

awin.deeplink("http://www.extra.com.br/", "adspace", function(err, url){
    console.log(url); //https://ad.zanox.com/ppc/?40352125C16456675&ULP=[[http://www.extra.com.br/?utm_source=zanox&utm_medium=deeplink&utm_campaign=deeplink]]
});

Keywords

api

FAQs

Package last updated on 01 May 2018

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