Skip to content

Instantly share code, notes, and snippets.

@christophermina
Last active August 29, 2015 14:07
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/ed78ae1b00481db295da to your computer and use it in GitHub Desktop.
Save christophermina/ed78ae1b00481db295da to your computer and use it in GitHub Desktop.
var post = request.post(storageUrl, {
headers: {
'X-Auth-User': slConfigs.SL_STORAGE_USERNAME,
'X-Auth-Token': token,
'X-Account-Meta-Temp-Url-Key': slConfigs.SL_TEMP_URL_KEY
}
}, function(err, value) {
if (value.statusCode == 204) {
return fn(null, "OK")
} else {
return fn("Failed to set Temporary URL Key");
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment