Skip to content

sakatam/node-yo-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-yo-api

a freakin' simple node wrapper for yo api

usage

install via npm:

npm i yo-api

in your code:

Yo = require "yo-api"
yo = new Yo "your-yo-api-token"
yo.yo_all (err, res, body) ->
  # do whatever...
yo.yo_all_link (err, res, body) ->
  # do whatever with a link...
yo.yo "WORLDCUP", (err, res, body) ->
  # do something else...
yo.yo_link "WORLDCUP", "http://example.com", (err, res, body) ->
  # do something else with a link...
yo.yo_location "WORLDCUP", 40.752726, -73.977240, (err, res, body) ->
  # do something else with a location...
yo.subscribers_count (err, res, body) ->
  # do something with count...

get involved

  1. fork it ( https://github.com/sakatam/node-yo-api/fork )
  2. create your feature branch (git checkout -b my-new-feature)
  3. commit your changes (git commit -am 'Add some feature')
  4. push to the branch (git push origin my-new-feature)
  5. create new pull request

About

freakin' simple yo api wrapper for nodejs

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •