Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Embed URL


Subversion checkout URL

You can clone with
Download ZIP
#!/usr/bin/env node
var program = require('commander');
var request = require('request');
var userId, apiKey;
console.log('Enter your API credentials to see your current settings...');
program.prompt('User ID: ', function(uid){
userId = uid;
program.password('API Key: ', '*', function(key){
apiKey = key;
request(''+userId+'&api_key='+apiKey, function(err, res, body){
if (!err & res.statusCode === 200){
var settings = JSON.parse(body);
console.log('Here are your Inbound Parse API settings:\n');
for(var i = 0; i < settings.parse.length; i++){
console.log(i+1+'. '+settings.parse[i].hostname+' -> '+settings.parse[i].url+'\n');
console.log('\nHave a nice day!');
} else {
console.log('Ooops! Looks like errors!');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.