1.0.0 • Published 9 years ago
palmettoflow-github-svc v1.0.0
Palmetto Flow Github Service
This service using the octonode api to create a palmetto flow service for the github api.
usage
npm i palmettoflow-github-svc
// get starred repos for a user
var newEvent = require('palmettoflow-event').newEvent
var ne = newEvent('github/user/starred', 'get', {}, {
access_token: '....'
})
ee.once(ne.from, function (repos) {
console.log(repos)
})
ee.emit('send', ne)
// get readme for repo
var newEvent = require('palmettoflow-event').newEvent
var ne = newEvent('github/user/starred', 'get', {}, {
access_token: '....'
})
ee.once(ne.from, function (repos) {
console.log(repos)
})
ee.emit('send', ne)
1.0.0
9 years ago