posterous-api-token

Posterous removed the api-token endpoint from their API. This returns it.

npm install posterous-api-token
8 downloads in the last week
16 downloads in the last month

Posterous API Token

Posterous removed their end point for getting API tokens for users. This returns it using the Zombie Library, which allows you to run a headless browser in Node.

Instalation

You can grab it from the repo, or use NPM.

npm install posterous-api-token

Usage

It's a pretty straight forward lib with just one method getToken with the first argument being an object containing your email address for posterous as well as the password. The second argument is a callback to handle the response and it can return an error or the token.

var posterous-api-token = require('posterous-api-token');

var email = 'your-email-address';
var password = 'your-password';
posterous_api_token.getToken({email:email, password:password}, function(err, token){
   if(err){
       console.log(err);
   }else{
       console.log(token);
   }
});

License

MIT http://rem.mit-license.org

npm loves you