Twitter Authorization with API Version 1.1

I had a search around stackoverflow, but I could not find the answer to my question, so I thought I would ask.

I am currently working on an iOS application where I want to get a public timeline feed if the user of the application does not have a Twitter account.

I can successfully do this using the twitters v1.0 API, and everything works fine. Just by making a request http://api.twitter.com/1/statuses/user_timeline.json?screen_name=username gets all the information I need.

However, since v1.0 is deprecated and V1.1 requires authentication for each request, I get a bad authorization error using this API. After reviewing the Twitter documentation and how to create OAuth request headers, I don’t quite understand the section “Obtaining a Signing Key” in the documentation from the link below. (this is my first experience with the Twitter and OAuth APIs, I am trying to get a good understanding before proceeding with the implementation)

https://dev.twitter.com/docs/auth/creating-signature

As I understand it, the consumer’s secret can be found at twitter.com/apps, but I’m not sure where I will get the “OAuth secret token” to create a valid signature key.

Since this is an iOS application, I know that I can use the TWRequest class, but, in my opinion, this will require the user to have Twitter setup on their device.

I hope this makes sense and any help would be appreciated.

thanks

+4
source share
1 answer

If you go into the Twitter app, you have configured https://dev.twitter.com/apps

You should see a secret access token under the heading Your access token . If you don't see this, you probably haven't created an access token yet.

+2
source

All Articles