Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Twitter.getOAuthRequestToken returns object but treated as string in logging #49

Open
Daven- opened this issue Sep 12, 2016 · 0 comments · May be fixed by #50
Open

Twitter.getOAuthRequestToken returns object but treated as string in logging #49

Daven- opened this issue Sep 12, 2016 · 0 comments · May be fixed by #50

Comments

@Daven-
Copy link

Daven- commented Sep 12, 2016

Can't see what the error actually is since all you get is 'ERROR: [object Object]'

Twitter.prototype.getOAuthRequestToken = function (next) {
    this.oauth.getOAuthRequestToken(function (error, oauth_token, oauth_token_secret, results) {
        if (error) {
            console.log('ERROR: ' + error);
            next();
        }
        else {
            var oauth = {};
            oauth.token = oauth_token;
            oauth.token_secret = oauth_token_secret;
            console.log('oauth.token: ' + oauth.token);
            console.log('oauth.token_secret: ' + oauth.token_secret);
            next(oauth);
        }
    });
};
@Daven- Daven- linked a pull request Sep 12, 2016 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant