Wrapper for Request JS with OAuth2 Client Flow
Install the module with: npm install oauth2request
var oauth2request = require('oauth2request');
var request = oauth2request.create({
client_id : '<client_id>',
client_secret : '<client_secret>',
scope : '<scope>',
oauth_token_url : 'https://<token_url>'
});
request.post('http://<post_url>',
{
body: JSON.stringify(<json object>)
},
function (e, r, body) {
if (body != undefined) {
var entry = JSON.parse(body);
console.log(entry);
}
});
## Documentation
_(Coming soon)_
## Examples
_(Coming soon)_
## Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).
## Release History
_(Nothing yet)_
## License
Copyright (c) 2014 DINHDUY TRAN. Licensed under the MIT license.