request/oauth

Name: oauth

Owner: request

Description: HTTP OAuth Authentication

Created: 2015-12-01 09:33:21.0

Updated: 2016-02-27 06:56:24.0

Pushed: 2015-12-02 09:47:49.0

Homepage: null

Size: 7

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

@request/oauth

See @request/core for more details.

Options
Required Optional
OAuth Options
Required Defaults Generated Optional
Result
Error
result = oauth(options)
result instanceof Error) {
 handle error

Success
result = oauth(options)

transport = options.oauth.transport_method || 'header'
transport === 'header') {
q.headers['authorization'] = result

 if (transport === 'query') {
 append result to your querystring

 if (transport === 'body') {
 append result to your form body

Notice

This module may contain code snippets initially implemented in request by request contributors.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.