Added new get method to OAuth2. Deprecated older getProtectedResource method

This commit is contained in:
ciaranj 2010-08-05 22:49:55 +01:00
parent 7117b2df3e
commit ca370f3f5a

View File

@ -96,6 +96,11 @@ exports.OAuth2.prototype.getOAuthAccessToken= function(code, params, callback) {
}); });
} }
// Deprecated
exports.OAuth2.prototype.getProtectedResource= function(url, access_token, callback) { exports.OAuth2.prototype.getProtectedResource= function(url, access_token, callback) {
this._request("GET", 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 );
}