kenwheeler / reactive2015

Reactive2015 Contest Entry
179 stars 42 forks source link

Twitter API integration #2

Closed Roman-K93 closed 8 years ago

Roman-K93 commented 8 years ago

Hello! I am facing pretty strange issue while I try to integrate Twitter API. I had passed all Fabric integration process successfully, add keys in AppDelegate.m, create the same TwitterAPI class. In TwitterAPI.m I got an error no visible @interface for 'Twitter' declares the selector 'APIClient' (screenshot attached). React Native project generated from scratch with no third-party dependencies despite of Fabric. Have you any suggestions what I am doing wrong and how to solve this issue?

xcode

Thank you in advance.

kenwheeler commented 8 years ago

Are you using fabric to install and link the required libs ?

munkhorgil commented 7 years ago

I know it is too late response and already closed anyway I just figured it out you could try as follows

TWTRAPIClient *client = [[TWTRAPIClient alloc] init]; NSString *statusesShowEndpoint = @"https://api.twitter.com/1.1/statuses/show.json"; NSURLRequest *request = [client URLRequestWithMethod:@"GET" URL:statusesShowEndpoint parameters:params error:&clientError]; if (request) [client sendTwitterRequest:request completion:^(NSURLResponse *response, NSData