This package has been deprecated

Author message:

Outdated,

mp-token

1.0.6 • Public • Published

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}
});

Readme

Keywords

Package Sidebar

Install

npm i mp-token

Weekly Downloads

2

Version

1.0.6

License

MIT

Last publish

Collaborators

  • unibtc