Dear All,
I Am Working on "Twitter Application". I want to fetch the data using
OAuth authentication. I am Using C++(Samsung BADA) For Coding.
I Was Successful For First Three Steps
1. Get the request token.
2. Redirect user for authentication.
3. Once user authorizes the application get the access token.
Now i am facing problem in getting the home_timeline data in JSON
Format.
After forming the request and send it to the server i am Getting the
error 401 and the error description is
{"request":"\/1\/statuses\/home_timeline.json","error":"Incorrect
signature"}.
Below i am providing the details
Hidden values :
my consumer key = xxxxxx
consumer secret = yyyyyy
oauth token = pppppp
ouath token secret = qqqqqq
Signature Base String Is :
-------------------------------------
GET&http%3A%2F%2Fapi.twitter.com%2F1%2Fstatuses
%2Fhome_timeline.json&oauth_consumer_key%3Dxxxxxx%26oauth_nonce
%3DOyQCriHhQW%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp
%3D1299665240%26oauth_token%3Dpppppp%26oauth_version%3D1.0
Signature Key Is:
-------------------------
yyyyyy%26qqqqqq
Signature :
--------------
abcdefghijklmno=
After Url encoding The Signature Is :
-------------------------------------------------
abcdefghijklmno%3D
OAuth Header :
----------------------
OAuth realm="Twitter API", oauth_consumer_key="xxxxxx",
oauth_nonce="OyQCriHhQW", oauth_signature_method="HMAC-SHA1",
oauth_timestamp="1299665240", oauth_token="pppppp",
oauth_version="1.0", oauth_signature="abcdefghijklmno%3D"
Host URL:
---------------
http://api.twitter.com/1/
Request URL:
--------------------
http://api.twitter.com/1/statuses/home_timeline.json
Please Let me Know is there any thing i missed.
Thanks And Regards
Kamesh
--
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group:
http://groups.google.com/group/twitter-development-talk