Skip to content

Instantly share code, notes, and snippets.

@christophermina
Created October 4, 2014 08:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christophermina/425d68bf99d58c776140 to your computer and use it in GitHub Desktop.
Save christophermina/425d68bf99d58c776140 to your computer and use it in GitHub Desktop.
var request = require('request');
request.get(slConfigs.SL_AUTH_URL_V1, {
headers: {
'X-Auth-User':slConfigs.SL_STORAGE_USERNAME,
'X-Auth-Key':slConfigs.SL_STORAGE_PASS
}
}, function(err, value) {
if (value.statusCode == 200) {
var token = value.headers['x-auth-token'];
var storageUrl = value.headers['x-storage-url'];
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment