Skip to content

Instantly share code, notes, and snippets.

@MillionIntegrals
Last active December 11, 2015 08:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MillionIntegrals/b95a19be29d9692f5279 to your computer and use it in GitHub Desktop.
Save MillionIntegrals/b95a19be29d9692f5279 to your computer and use it in GitHub Desktop.
# 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