You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
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
Package was removed
Sorry, it seems this package was removed from the registry

awin-api

API integration with Awin

0.2.0
unpublished
latest
Source
npmnpm
Version published
Weekly downloads
0
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