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

Bearer Token #111

Closed
chrishawn opened this issue May 5, 2016 · 3 comments
Closed

Bearer Token #111

chrishawn opened this issue May 5, 2016 · 3 comments

Comments

@chrishawn
Copy link

what is the syntax for doing an authorization bearer token?

what i was doing in request doesn't seem to work.

@analog-nico
Copy link
Member

Please have a look at the Request documentation. Request-Promise works the same.

Let me know if that helped.

@chrishawn
Copy link
Author

ok i think it was a capitalization issue, got it working with

     var options = {
                url: APIURL,
                headers: {
                    'User-Agent': 'client'
                },
                auth: {
                    'bearer': accessToken
                }
            };

@analog-nico
Copy link
Member

Great!

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

No branches or pull requests

2 participants