Twitter.getLoginUrl()

Get the URL on twitter.com that a user should visit to allow/deny the specified Twitter Developer app (i.e. your app).

Usage

Hover over inputs/exits for more info.

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


// Get the URL on twitter.com that a user should visit to allow/deny the specified Twitter Developer app (i.e. your app).

Twitter.getLoginUrl({

callbackUrl: 'http://localhost:1337/auth/callback',

: ,

: ,

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function (result) {

 

},

});

Inputs

callbackUrl required

The callback URL where the end user will be redirected after visiting the login URL returned by this machine.

'http://localhost:1337/auth/callback'
undefined

undefined

Exits

error

An unexpected error occurred.

success

OK.

'https://twitter.com/oauth/authenticate?oauth_token=80Hl2t3SKgdPLyD0xMxoEPoJP3CEQSXV'