Skip to content

Instantly share code, notes, and snippets.

@shanehsu
Created March 29, 2017 18:02
Show Gist options
  • Save shanehsu/4d058b966cd4e331045651327667de56 to your computer and use it in GitHub Desktop.
Save shanehsu/4d058b966cd4e331045651327667de56 to your computer and use it in GitHub Desktop.
// Dependencies:
// npm install request request-promise-native
var request = require('request-promise-native')
request.post('http://120.107.172.236:3000/devices/').then(v => {
console.dir(JSON.parse(v))
}).catch(e => {
console.error(e)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment