Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cityads-api

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cityads-api

API integration with CityAds

  • 0.1.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Cityads API

npm package

API integration with Cityads

Install

$ npm install cityads-api

Get Api Key

Usage

"use strict";

let Cityads = require("cityads-api"),
    cityads = new Cityads("Client_id", "Secret_key", "Remote_Auth");

//Get GEOID in https://cityads.com/api/dev/webmaster/lists?lang=en#GETgeo-list
cityads.programs(32, function(err, result){
    console.log(result);
});

//Create coupon filter in https://cityads.com/publisher/coupons
cityads.coupons("NDQ5NzY1NjE2", function(err, result){
    console.log(result);
});

cityads.report("statistics-rate", "event_time_day", "2016-10-01", "2016-11-18", function(err, result){
    console.log(result.data);
});

cityads.deeplink("https://www.amomuito.com/", 8065, (err, url) => {
    console.log(url);//http://cityadspix.com/click-DQFB8U6A-PNLJQTEF?url=https%3A%2F%2Fwww.amomuito.com%2F
});

Keywords

FAQs

Package last updated on 13 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

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