ciaranj/node-oauth

No request sent unless something is invoked

nitinsurana opened this issue · 1 comments

Hi,

I want to use oAuth1.0 for SSO.

var oauth = new OAuth.OAuth(
      'https://api.twitter.com/oauth/request_token',
      'https://api.twitter.com/oauth/access_token',
      'your application consumer key',
      'your application secret',
      '1.0A',
      null,
      'HMAC-SHA1'
    );

The above piece of code doesn't send any request, unless we try to get any resource or something. How do I trigger the oAuth request ?

oauth.post(
    url,
    '',
    '',
    extra_params,
    function (e, data, res) {
        if (e) console.error(e);
        console.log(require('util').inspect(data));
    }
);