Re-ordered the arguments on the getresource thingy.

This commit is contained in:
ciaranj
2010-04-19 22:34:30 +01:00
parent 6113ed72af
commit 313f65ed0d
2 changed files with 2 additions and 3 deletions

View File

@ -23,7 +23,7 @@ oa.getOAuthRequestToken(function(error, oauth_token, oauth_token_secret, authori
sys.puts('accesstoken results :' + sys.inspect(results2))
sys.puts("Requesting access token")
var data= "";
oa.getProtectedResource(oauth_access_token, oauth_access_token_secret, "http://term.ie/oauth/example/echo_api.php?foo=bar&too=roo", function (response) {
oa.getProtectedResource("http://term.ie/oauth/example/echo_api.php?foo=bar&too=roo", "GET", oauth_access_token, oauth_access_token_secret, function (response) {
response.setEncoding('utf8');
response.addListener('data', function (chunk) {
data+=chunk;