shernshiou / node-uber

Uber API nodejs wrapper
MIT License
188 stars 66 forks source link

how to set access_token #46

Closed Jan-Jan closed 8 years ago

Jan-Jan commented 8 years ago

First off, thank you very much for node-uber!!

I was wondering how do I set an access_token on requests that require OAuth?

agraebe commented 8 years ago

@Jan-Jan you're very welcome! By saying "set an access_token", do you mean without actually going through the process of obtaining one? If you want to get an access_token first, the steps in the README guide you exactly through that process. Otherwise, you can manually override the access_token in the Uber object: uber.access_token.

tjhorner commented 7 years ago

Does setting uber.access_token still work in the current version? It doesn't for me. Any requests that require OAuth give an invalid_grant error.