IOS Twitter Custom Timeout with API v1.1

Twitter recently changed the API to v1.1. With this API, you now need to first log in to Twitter, and only then can we get a timeline. It's true?

Can I get a custom timeline without user login?

thanks

+2
source share
3 answers

I tried FHSTwitterEngine but I found STTwitter better: https://github.com/nst/STTwitter

+3
source

look at FHSTwitterEngine , you can use the new FHSTwitterEngine, and if you request this method without authentication, the user status will be deleted ... you must send the consumer key and token along with screen_name .. In FHSTwitterEngine

//get username pass to method. In Dictionary you can get all info NSString *username = [[FHSTwitterEngine sharedEngine]loggedInUsername]; NSDictionary *data=[[FHSTwitterEngine sharedEngine]getUserProfile:username]; // method to get all user info -(id)getUserProfile:(NSString *)username { if (username.length == 0) { return getBadRequestError(); } NSURL *baseURL = [NSURL URLWithString:url_users_show]; OAMutableURLRequest *request = [OAMutableURLRequest requestWithURL:baseURL consumer:self.consumer token:self.accessToken]; OARequestParameter *usernameP = [OARequestParameter requestParameterWithName:@"screen_name" value:username]; NSArray *params = [NSArray arrayWithObjects:usernameP, nil]; id userShowReturn = [self sendGETRequest:request withParameters:params]; return userShowReturn; } 
+1
source

You can perfectly select the user's timeline, even if the user is not logged in.

You must use the new application-only mode, which authenticates only the application.

See this answer for more details.

0
source

Source: https://habr.com/ru/post/947261/


All Articles