Created
May 21, 2015 22:20
-
-
Save cscott/47e521514ad5c825b42a to your computer and use it in GitHub Desktop.
Check first character of vocaloid API response
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
#!/usr/bin/env node | |
var r = require("request"); | |
var url = "http://wiki.vocaloid.de/api.php?format=json&action=query&meta=siteinfo&siprop=namespaces%7Cnamespacealiases%7Cmagicwords%7Cfunctionhooks%7Cextensiontags%7Cgeneral%7Cinterwikimap%7Clanguages%7Cprotocols&rawcontinue=1"; | |
r({ url: url, json: false }, function(err, res, body) { | |
console.log("First character is: ", body.charCodeAt(0)); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment