I am developing a chrome extension for twitter (yeah another one ;-)). I have few doubts from twitter’s API documentation at the implementation. I will use javascript code to clear doubts.
BASE STRING var xhr = new XMLHttpRequest(); xhr.open(METHOD,URL, false); xhr.setRequestHeader("Authorization",HEADER); xhr.onreadystatechange = function() { if (xhr.readyState == 4 ) { //func } } xhr.send(BODY); } HEADER: usual header with oauth details (same for all) FOR UPDATING STATUS BASE STRING: should have the usual oauth details with URL as given below and also BODY as give below METHOD: POST URL: http://api.twitter.com/1/statuses/update.json BODY: status=something Result: INTERNAL SERVER ERROR FOR GETTING TIMELINE BY COUNT BASE STRING: should have the usual oauth details with URL as given below METHOD: GET URL: http://api.twitter.com/version/statuses/home_timeline.json?count=200 BODY: count=200 Result: INVALID SIGNATURE RETWEETING BASE STRING: should have the usual oauth details with URL as given below METHOD: POST URL: http://api.twitter.com/version/statuses/retweet/:id.json BODY: null “id” in the url means id specified in the json of the tweet. Result: NOT FOUND ERROR Please clear my mistakes and any changes I need to make. -- Twitter developer documentation and resources: https://dev.twitter.com/doc API updates via Twitter: https://twitter.com/twitterapi Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list Change your membership to this group: https://groups.google.com/forum/#!forum/twitter-development-talk