I'm looking to make the move from twitter 1 api to 1.1 and I understand the need to use oAuth to authenticate my requests.
All my app does at present is retrieve a set user's time line and displays that to the app user.
I dont want the user to have to sign in to twitter to view the user's timeline. The usage-restrictions are not an issue (15 per 15 minutes)
Can someone explain to me where to go from here, I want to keep my deployment target at 4.3 and not having much look finding documentation on twitter iOS single User OAUTH.
Thanks,
After creating the app ID at dev.twitter.com , in the "details" tab there will be a place to create a single user token. Use this in place of the user's token and token secret.
I recommend only doing this on a read-only access level.
I managed to resolve this using 'ABOAuthCore' library available on Github.. This created the relevant header value for me and was used as such:
NSString *authorizationHeader = OAuthorizationHeader(newsURL,
@"GET",
postBody,
KConsumerKey,
KConsumerSecret,
KAccessToken,
KAccessTokenSecret);
[request setValue:authorizationHeader forHTTPHeaderField:@"Authorization"];
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.