See @request/core for more details.
{} see belowurl.parse()'d objectGET | POST …a=1&b=2a=1&b=2{a:1,b:2}consumer_secret when using RSA-SHA1 signing1.0HMAC-SHA1 | RSA-SHA1 | PLAINTEXTheader | query | formtrue to get one generated for youvar result = oauth(options)
if (result instanceof Error) {
// handle error
}
var result = oauth(options)
var transport = options.oauth.transport_method || 'header'
if (transport === 'header') {
req.headers['authorization'] = result
}
else if (transport === 'query') {
// append result to your querystring
}
else if (transport === 'body') {
// append result to your form body
}
This module may contain code snippets initially implemented in request by request contributors.