oauth2request

0.3.0 • Public • Published

OAuth2Request Build Status

Wrapper for Request JS with OAuth2 Client Flow

Getting Started

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.

Readme

Keywords

Package Sidebar

Install

npm i oauth2request

Weekly Downloads

8

Version

0.3.0

License

none

Last publish

Collaborators

  • dtran