Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# nodejitsu-api vesion
api = require('nodejitsu-api')
client = api.createClient(
username: 'MillionIntegrals'
password: '<token>'
remoteUri: 'https://api.nodejitsu.com'
)
client.logs.byUser('MillionIntegrals', 100, (err, res) ->
console.log(err)
console.log(res)
)
# Superagent version
request = require('superagent')
request
.post('https://api.nodejitsu.com/logs/MillionIntegrals')
.auth('MillionIntegrals', '<token>')
.send(
from: "NOW-3YEARS"
until: "NOW"
rows: 15
)
.end( (err, res) ->
console.log(err, res.text)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.