Permalink
Browse files

The fix for Issue #64 implies that the test server I've been using is…

… wrong
  • Loading branch information...
ciaranj committed Jul 28, 2012
1 parent b03f6ae commit 9db835000ec5bd99afda79f9e00a3d7d83d83deb
Showing with 0 additions and 34 deletions.
  1. +0 −34 examples/term.ie.oauth-PLAINTEXT.js
@@ -1,34 +0,0 @@
-var util= require('util')
-
-var OAuth= require('../lib/oauth').OAuth;
-
-var oa = new OAuth("http://term.ie/oauth/example/request_token.php?foo=bar",
- "http://term.ie/oauth/example/access_token.php",
- "key",
- "secret",
- "1.0",
- null,
- "PLAINTEXT")
-
-oa.getOAuthRequestToken(function(error, oauth_token, oauth_token_secret, results){
- if (error) return console.log('error :' + error)
- console.log('oauth_token :' + oauth_token)
- console.log('oauth_token_secret :' + oauth_token_secret)
- console.log('requestoken results :', results)
- console.log("Requesting access token")
- oa.getOAuthAccessToken(oauth_token, oauth_token_secret,
- function(error, oauth_access_token,
- oauth_access_token_secret, results2) {
- console.log('oauth_access_token :' + oauth_access_token)
- console.log('oauth_token_secret :' + oauth_access_token_secret)
- console.log('accesstoken results :', results2)
- console.log("Requesting access token")
- var data= "";
- oa.getProtectedResource(
- "http://term.ie/oauth/example/echo_api.php?foo=bar&too=roo", "GET",
- oauth_access_token, oauth_access_token_secret,
- function (error, data, response) {
- console.log(data);
- });
- });
-})

0 comments on commit 9db8350

Please sign in to comment.