1.0.6 • Published 9 years ago
mp-token v1.0.6
mp-token
Programmatically get a new access_token for moneypot.com ###Note: the app must have https://www.moneypot.com/oauth/debug as one of their redirect uris ##Example
var mp = require('mp-token');
var args = {
app_id:1091, // the app id
session_id:'be324ef0-7662-4757-8a47-15e2eaf6a951'
//your unexpired moneypot.com sessionid you can get this from your browser cookies
}
mp(args,function(error,token){
if(error)
throw (error);
console.log(token); //will return a JSON Object {access_token:newToken,expires_in:expirationDate}
});