Skip to content

addybot/addybot-api-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

AddyBot is a first global advertising platform created specially for chatbots. As most of the chatbots are written in Node.js, we assumed it would be great to have an npm module to quickly integrate your bot with the our service.

Quick Start

npm install --save addybot-api
var addybot = require('addybot-api');
var getAd = addybot(API_TOKEN); // Checkout your cabinet

getAd(userId, "english").then(ad => {
  var message = ad.text + '\n' + ad.uri;
  // Send this message to user
});

Also

About

Node.js module for AddyBot API

Resources

License

Stars

Watchers

Forks

Packages

No packages published