pyo

0.0.1 • Public • Published

Noyo

A simple, promise-based wrapper for the Yo api.

Before Using

Make sure you've signed up for the Yo api. You can do so here. Have your API token ready at the next window.

Initialization

Create an instance of the api wrapper like so:

var Api = require('pyo');
api = new Api('YOUR_API_TOKEN');

Usage

To send a Yo to all of your followers:

api.yoAll()
.then(function (result) {
  // => {result: 'OK'}
});

To send a Yo to just one user:

api.yoOne('notduncansmith')
.then(function (result) {
  // => {result: 'OK'}
  // By the way, feel free to YO me if you find this module helpful!
});

To get a count of all your subscribers:

qpi.subscribers()
.then(function (subCount) {
  // => 3
});

Feel free to send pull requests! If you do, please make sure to compile the entry point.

Readme

Keywords

none

Package Sidebar

Install

npm i pyo

Weekly Downloads

1

Version

0.0.1

License

ISC

Last publish

Collaborators

  • notduncansmith