Twitter.getBearerToken()

Generate a new bearer token for your Twitter developer app.

This DOES NOT allow you to act on behalf of any specific Twitter user -- for that, use `getAccessToken()`. Instead, this machine allows you to get a bearer token, which requests the Twitter API on behalf of your Twitter app (and thus as _you_, the Twitter developer.)

Usage

Hover over inputs/exits for more info.

var Twitter = require('machinepack-twitter');


// Generate a new bearer token for your Twitter developer app.

Twitter.getBearerToken({

: ,

: ,

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function (result) {

 

},

});

Inputs

undefined

undefined

Exits

error

An unexpected error occurred.

success

OK.

'847489329-998DSdafaasdDSF08asdfda08agf6ad6fsdaa08dasdaf76sa5'