Skip to content

Commit

Permalink
minor tidy up to the api file, debug and comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
stereoket committed Mar 28, 2011
1 parent 821da5a commit f03ceeb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
3 changes: 1 addition & 2 deletions readme
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,4 @@ if (oa.oAuthAdapter.isAuthorized() != false) {
});
}



You can make donations here if it works for you and you wish to support: http://goo.gl/h4UKN (pay pal link) or via my site: http://www.stereoartist.com/projects.php
9 changes: 4 additions & 5 deletions twitter_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ oa.oAuthAdapter = new OAuthAdapterNew(
};

accessor.tokenSecret = '';
var message = oa.oAuthAdapter.createMessage('https://api.twitter.com/oauth/request_token', 'POST');
Ti.API.info('message is '+ message);
var toaURL = 'https://api.twitter.com/oauth/request_token';
var message = oa.oAuthAdapter.createMessage(toaURL, 'POST');
OAuth.setTimestampAndNonce(message);
OAuth.setParameter(message, "oauth_timestamp", OAuth.timestamp());
OAuth.SignatureMethod.sign(message, accessor);
Expand All @@ -62,14 +62,13 @@ Ti.API.info('message is '+ message);
},4000);

} catch(e){
alert(E);
Ti.API.debug('onload function error '+ e)
alert(e);
}
};
Ti.API.debug(finalUrl+ ' Is the finalURL for auth step 1');
client.open('POST', finalUrl, false);
client.setRequestHeader('X-Requested-With',null);
// client.setTimeout(3000);
client.send();
// have to use a settimeout function to allow ANDROID to get the return value to pass onto the next function.

}

2 comments on commit f03ceeb

@stereoket
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have updated this version and taken the destroyAuthWindow() method out of the equation, its not necessary in the adapter, and now runs after the tokens are returned. I have yet to commit this change.

@stereoket
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also noticed that now with the new twitter oAuth updates the pin retrieval on android does not work, looking for a fix for that now.

Please sign in to comment.