Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

pyo

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

pyo

A wrapper for the Yo API

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

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.

FAQs

Package last updated on 21 Jul 2014

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