expose authHeader better integration in app
This commit is contained in:
@ -367,3 +367,12 @@ exports.OAuth.prototype.signUrl= function(url, oauth_token, oauth_token_secret,
|
||||
|
||||
return parsedUrl.protocol + "//"+ parsedUrl.host + parsedUrl.pathname + "?" + query;
|
||||
};
|
||||
|
||||
exports.OAuth.prototype.authHeader= function(url, oauth_token, oauth_token_secret, method) {
|
||||
if( method === undefined ) {
|
||||
var method= "GET";
|
||||
}
|
||||
|
||||
var orderedParameters= this._prepareParameters(oauth_token, oauth_token_secret, method, url, {});
|
||||
return this._buildAuthorizationHeaders(orderedParameters);
|
||||
};
|
||||
|
Reference in New Issue
Block a user