Created
March 29, 2017 18:02
-
-
Save shanehsu/4d058b966cd4e331045651327667de56 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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