Last active
June 13, 2017 23:09
-
-
Save PreSoichiSumi/2a220d19161b2abb406482ce057938a3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
var req = require('request'); | |
var options={ | |
method: 'GET', | |
uri: 'https://gist.githubusercontent.com/SoichiSumi/5bed3eb79ae8ec97b193f3ca35841990/raw/6d4beeb68822cd9d6af4a164bbfaeab3a9c050a9/test.json', | |
headers: { | |
'Origin':'https://github.com/', | |
'Referer':'https://github.com/SoichiSumi/SoichiSumi.github.io' | |
} | |
}; | |
req(options,function(e,res,body){ | |
console.log('response: ',JSON.stringify(res)); | |
console.log('response: ', body); | |
var jso=JSON.parse(body); | |
console.log('response:',jso.unko); | |
console.log('response:',jso["unko"]); | |
console.log('response:',jso.hoge); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
result