Totally lost at using OAuth for a simple follower count json request


#1

im totally lost between a loop of looking at twitter documentation for oAuth and Application only Authentication, i cant actually find the answer i need.

I am looking to simply make one request to get a usernames follower count. I understand this requires authenticaiton, but how exactly do i implement this?

I’m totally lost, and neither twitter development center or stack overflow or any other web resource i seem to check is helping me, i created an account and entered all access keys/tokens and ran some oAuth Signature request tests, and this is what i get, but it doesnt help me :confused:

OAuth Signing Results
Important: This will only be valid for a few minutes. Also remember the cURL command will actually execute the request.
Signature base string	
GET&https%3A%2F%2Fapi.twitter.com%2F1.1%2Fusers%2Fshow.json&oauth_consumer_key%3D9hRiLgYNUvvJElZa4iuOcA%26oauth_nonce%3D6ead34b8bed51ec7f7ee518ca648e5b0%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1371776355%26oauth_token%3D198509858-dMwvM11ndnbh6znnYGH2i1hYju9B4cGc1ZYDAN7C%26oauth_version%3D1.0%26screen_name%3Dmegabooth
Authorization header	
Authorization: OAuth oauth_consumer_key="9hRiLgYNUvvJElZa4iuOcA", oauth_nonce="6ead34b8bed51ec7f7ee518ca648e5b0", oauth_signature="rp7SAlyqtCbUTFnD0cXpFb8vvzo%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1371776355", oauth_token="198509858-dMwvM11ndnbh6znnYGH2i1hYju9B4cGc1ZYDAN7C", oauth_version="1.0"
cURL command	
curl --get 'https://api.twitter.com/1.1/users/show.json' --data 'screen_name=megabooth' --header 'Authorization: OAuth oauth_consumer_key="9hRiLgYNUvvJElZa4iuOcA", oauth_nonce="6ead34b8bed51ec7f7ee518ca648e5b0", oauth_signature="rp7SAlyqtCbUTFnD0cXpFb8vvzo%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1371776355", oauth_token="198509858-dMwvM11ndnbh6znnYGH2i1hYju9B4cGc1ZYDAN7C", oauth_version="1.0"' --verbose

#2

heh - me too - the documentation is very confusing