Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #import <Foundation/Foundation.h>
- int main(int argc, const char * argv[])
- {
- NSString *twitterUrl = @"http://54.207.80.28/api-lebox/versiones";
- // NSString *resp = [self makeRestAPICall: twitterUrl];
- NSURLRequest *Request = [NSURLRequest requestWithURL:[NSURL URLWithString: twitterUrl]];
- NSURLResponse *resp = nil;
- NSError *error = nil;
- NSData *response = [NSURLConnection sendSynchronousRequest: Request returningResponse: &resp error: &error];
- NSString *responseString = [[NSString alloc] initWithData:response encoding:NSUTF8StringEncoding];
- NSLog(@"%@",responseString);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement