ios - Using Twitter framwork to get tweet details -
i developing ipad application running in ios 5.1 in twitter integration has been done. able tweet using application using twitter.framework. want details of tweet made. used twrequest in framework post query as
-(ibaction)querybuttontapped:(id)sender{ twrequest *request = [[twrequest alloc] initwithurl:[nsurl urlwithstring:@"http://search.twitter.com/search.json?q=indians&rpp=5&with_twitter_user_id=true&result_type=recent"] parameters:nil requestmethod:twrequestmethodget]; [request performrequestwithhandler:^(nsdata *responsedata, nshttpurlresponse *urlresponse, nserror *error) { if([urlresponse statuscode] >= 200){ nserror *error; nsdictionary *dict = [nsjsonserialization jsonobjectwithdata:responsedata options:0 error:&error]; uialertview *alertview1 = [[uialertview alloc] initwithtitle:@"twitter response" message:[nsstring stringwithformat:@"response: %@",dict] delegate:self cancelbuttontitle:@"ok" otherbuttontitles:nil]; [alertview1 show]; } else{ uialertview *alertview2 = [[uialertview alloc] initwithtitle:@"oops" message:[nsstring stringwithformat:@"response: %i, , error %@",[urlresponse statuscode],error] delegate:self cancelbuttontitle:@"ok" otherbuttontitles:nil]; [alertview2 show]; } }]; }
here searching indians tweet made.
i got alert message "the twitter rest api v1 no longer active.please migrate api v1.1." want know 1.1 version. have twitter.framework or should new twitter.framwork. or else need query in different manner. please me out!
i have been having same issue month now, see if helps. twitter framework uses api version 1.0 , has been take down now.
Comments
Post a Comment