Added new get method to OAuth2. Deprecated older getProtectedResource method
This commit is contained in:
parent
7117b2df3e
commit
ca370f3f5a
@ -96,6 +96,11 @@ exports.OAuth2.prototype.getOAuthAccessToken= function(code, params, callback) {
|
||||
});
|
||||
}
|
||||
|
||||
// Deprecated
|
||||
exports.OAuth2.prototype.getProtectedResource= function(url, access_token, callback) {
|
||||
this._request("GET", url, {}, access_token, callback );
|
||||
}
|
||||
|
||||
exports.OAuth2.prototype.get= function(url, access_token, callback) {
|
||||
this._request("GET", url, {}, access_token, callback );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user