@arungupta Arun Gupta
Thanks, Here is the request_token …
INFO: 1 * Client out-bound request
1 > POST https://api.twitter.com/oauth/request_token
1 > Authorization: OAuth oauth_callback=“http%3A%2F%2Flocalhost%3A8080%2Ftwitter%2FOAuthCallback”, oauth_signature=“vcz%2BPP70md31dgT2OkswJl3CIgg%3D”, oauth_version=“1.0”, oauth_nonce=“ec08c720-4941-4ab2-ab75-c9da0add28d8”, oauth_signature_method=“HMAC-SHA1”, oauth_consumer_key=“8e2oGgzj5t9G4LmvDejYTg”, oauth_timestamp=“1326475695”
INFO: 1 * Client in-bound response
1 < 200
1 < X-Runtime: 0.01677
1 < ETag: "6621ab904d95fe8030b0330fa4a14854"
1 < X-Transaction: 72fab273c220fae7
1 < Content-Length: 141
1 < X-MID: 1ad0e1babd5de3dd906438498affc3fe57552b48
1 < Expires: Tue, 31 Mar 1981 05:00:00 GMT
1 < Last-Modified: Fri, 13 Jan 2012 17:28:15 GMT
1 < X-Revision: DEV
1 < Set-Cookie: _twitter_sess=BAh7CDoPY3JlYXRlZF9hdGwrCAfXHNg0AToHaWQiJTUyZjg3MDRkN2QwZjdi%250AYWJkNGJmMDJlZmFiN2NmYzczIgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVy%250AOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA–fb4e77c43fbf58847bcdb9cc2ed9b878026c72b1; domain=.twitter.com; path=/; HttpOnly
1 < Set-Cookie: guest_id=v1%3A132647569587841417; domain=.twitter.com; path=/; expires=Mon, 13-Jan-2014 05:28:15 GMT
1 < Set-Cookie: k=10.35.47.123.1326475695869380; path=/; expires=Fri, 20-Jan-12 17:28:15 GMT; domain=.twitter.com
1 < Server: tfe
1 < Cache-Control: no-cache, no-store, must-revalidate, pre-check=0, post-check=0
1 < Pragma: no-cache
1 < Status: 200 OK
1 < X-Frame-Options: SAMEORIGIN
1 < Date: Fri, 13 Jan 2012 17:28:15 GMT
1 < Vary: Accept-Encoding
1 < Content-Type: text/html; charset=utf-8
1 <
oauth_token=tiIFgo92aN737y1ZIBqAyRy037iXgZcuSxoGkZxs&oauth_token_secret=xXajFDvgFS38pWoDjoUAk4hAXfQUcJLRrEoD9JE&oauth_callback_confirmed=true
After authorization with https://api.twitter.com/oauth/authorize?oauth_token=tiIFgo92aN737y1ZIBqAyRy037iXgZcuSxoGkZxs and redirection, here is the request for access_token …
INFO: 1 * Client out-bound request
1 > POST https://api.twitter.com/oauth/access_token
1 > Authorization: OAuth oauth_signature=“ra7%2FrhcvcnEaUMiFQ%2B79p%2FcrNMg%3D”, oauth_version=“1.0”, oauth_nonce=“a8f6e47c-c52d-4f81-9cc3-52a6cf68ea92”, oauth_signature_method=“HMAC-SHA1”, oauth_consumer_key=“8e2oGgzj5t9G4LmvDejYTg”, oauth_token=“tiIFgo92aN737y1ZIBqAyRy037iXgZcuSxoGkZxs”, oauth_verifier=“P9lwN5mhKtsl9hBLaDTZerXkps3JhTtvoUPxKdUXr0”, oauth_timestamp=“1326475943”
INFO: 1 * Client in-bound response
1 < 200
1 < X-Runtime: 0.05490
1 < ETag: "4fa25a23a6ee62e424c6b0308ef6b585"
1 < X-Transaction: 4ec9f909837f1701
1 < Content-Length: 163
1 < X-MID: cf58132e2767288464d1c31ade45712a0241c903
1 < Expires: Tue, 31 Mar 1981 05:00:00 GMT
1 < Last-Modified: Fri, 13 Jan 2012 17:32:24 GMT
1 < X-Revision: DEV
1 < Set-Cookie: _twitter_sess=BAh7CDoPY3JlYXRlZF9hdGwrCMKjINg0AToHaWQiJTkzZjlkOWJlOTIyMDAx%250AYzhmNzgxYTFiOWNkZTk4MDZjIgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVy%250AOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA–09ae5972e7987336c52779ef812a36b3d966b987; domain=.twitter.com; path=/; HttpOnly
1 < Set-Cookie: guest_id=v1%3A132647594489779974; domain=.twitter.com; path=/; expires=Mon, 13-Jan-2014 05:32:24 GMT
1 < Set-Cookie: k=10.35.24.138.1326475944891136; path=/; expires=Fri, 20-Jan-12 17:32:24 GMT; domain=.twitter.com
1 < Server: tfe
1 < Cache-Control: no-cache, no-store, must-revalidate, pre-check=0, post-check=0
1 < Pragma: no-cache
1 < Status: 200 OK
1 < X-Frame-Options: SAMEORIGIN
1 < Date: Fri, 13 Jan 2012 17:32:24 GMT
1 < Vary: Accept-Encoding
1 < Content-Type: text/html; charset=utf-8
1 <
oauth_token=12387972-tRzHZ57HGKohKDzpG3D7eAWeZK8No0v1RkZKXrXZR&oauth_token_secret=kfCuKV4xc8EoSsedhOS0FW9DxHTRWu09GzJLtZdtHA&user_id=12387972&screen_name=arungupta
The “screen_name” in the response seem to indicate that “arungupta” (that is me) is successfully authorized. And then finally …
INFO: 1 * Client out-bound request
1 > GET https://api.twitter.com/1/statuses/user_timeline.json?include_entities=true&include_rts=true&screen_name=arungupta&count=10
1 > Authorization: OAuth oauth_signature="%2BQZ1IsE%2FUnHuE%2F56sf8xa7y3lFE%3D", oauth_version=“1.0”, oauth_nonce=“2d7f6dab-61d2-4f67-afff-33277bf4c8b2”, oauth_signature_method=“HMAC-SHA1”, oauth_consumer_key=“8e2oGgzj5t9G4LmvDejYTg”, oauth_token=“12387972-tRzHZ57HGKohKDzpG3D7eAWeZK8No0v1RkZKXrXZR”, oauth_timestamp=“1326475945”
INFO: 1 * Client in-bound response
1 < 200
1 < X-Runtime: 0.08044
1 < ETag: "6bb8d1e8f611ecb08fe9c981ad96467a"
1 < X-Transaction: 3fbfb97dfb8f7ca8
1 < X-RateLimit-Limit: 150
1 < X-RateLimit-Remaining: 124
1 < Content-Length: 21955
1 < X-MID: 9854078cee27efd25b37a2633dcc8833cbc1d101
1 < Expires: Tue, 31 Mar 1981 05:00:00 GMT
1 < Last-Modified: Fri, 13 Jan 2012 17:32:25 GMT
1 < X-RateLimit-Reset: 1326478056
1 < X-RateLimit-Class: api
1 < X-Revision: DEV
1 < Set-Cookie: _twitter_sess=BAh7CDoPY3JlYXRlZF9hdGwrCAanINg0AToHaWQiJTQzMGE2OTQ5NDdlYzk2%250AMzczODJhNzk1MGZhNWI2MGYxIgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVy%250AOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA–a7e78d7269f56c6a5f1b241b74aed2893a4613a4; domain=.twitter.com; path=/; HttpOnly
1 < Set-Cookie: guest_id=v1%3A132647594572622786; domain=.twitter.com; path=/; expires=Mon, 13-Jan-2014 05:32:25 GMT
1 < Set-Cookie: k=10.35.24.138.1326475945722775; path=/; expires=Fri, 20-Jan-12 17:32:25 GMT; domain=.twitter.com
1 < Server: tfe
1 < X-Warning: Invalid OAuth credentials detected
1 < Cache-Control: no-cache, no-store, must-revalidate, pre-check=0, post-check=0
1 < Pragma: no-cache
1 < Status: 200 OK
1 < X-Frame-Options: SAMEORIGIN
1 < Date: Fri, 13 Jan 2012 17:32:25 GMT
1 < Vary: Accept-Encoding
1 < Content-Type: application/json; charset=utf-8
1 < X-Transaction-Mask: a6183ffa5f8ca943ff1b53b5644ef1143ae2f9b7
1 <
And then follows the response because this API does not require authorization.But X-Warning header indicate that authorization did not succeed.
Any clues ?
2 years 6 weeks ago reply