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
Documentation: Added Simple JSON Example with oAuth #2613
base: master
Are you sure you want to change the base?
Conversation
I think this is a common enough example to warrant it own example. This assumes you are doing oAuth with your known token/keys (connecting to your own app). Not sure the best way to word the difference between that and your other example...
README.md
Outdated
@@ -27,6 +27,7 @@ request('http://www.google.com', function (error, response, body) { | |||
|
|||
## Table of contents | |||
|
|||
- [Simple JSON with oAuth](#simple-json-with-oauth) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think OAuth
is more general than oAuth
README.md
Outdated
} | ||
}, | ||
function (error, response, body) { | ||
if (!error && response.statusCode == 200) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
===
README.md
Outdated
console.log(body); //handle success | ||
} | ||
else { | ||
console.log("Error "+response.statusCode); //handle error |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add space before and after '+'
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Co-authored-by: Francis Gulotta <wizard@roborooter.com>
Don't know if this is still relevant/accurate but just noticed the comments so updated in case it is |
I think this is a common enough scenario to warrant it own example. This assumes you are doing oAuth with your known token/keys (connecting to your own app). Not sure the best way to word the difference between that and your other example...
PR Checklist:
npm test
locally and all tests are passing.PR Description