Skip to content

Instantly share code, notes, and snippets.

@cfjedimaster
Created February 2, 2014 22:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cfjedimaster/8775857 to your computer and use it in GitHub Desktop.
Save cfjedimaster/8775857 to your computer and use it in GitHub Desktop.
//url was defined earlier with my desired method call, args, etc
var ts = new Date().getTime();
var hash = crypto.createHash('md5').update(ts + PRIV_KEY + API_KEY).digest('hex');
url += "&ts="+ts+"&hash="+hash;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment