Skip to content

Instantly share code, notes, and snippets.

@corinnekrych
Created January 7, 2014 15:40
Show Gist options
  • Select an option

  • Save corinnekrych/8301173 to your computer and use it in GitHub Desktop.

Select an option

Save corinnekrych/8301173 to your computer and use it in GitHub Desktop.
NSString* readGoogleDriveURL2 = @"https://www.googleapis.com/drive/v2/files";
NSString *url = [NSString stringWithFormat:@"%@?access_token=%@", readGoogleDriveURL2, object];
AFHTTPClient* restClient = [[AFHTTPClient alloc] initWithBaseURL:[NSURL URLWithString:readGoogleDriveURL2]];
[restClient postPath:url parameters:nil success:^(AFHTTPRequestOperation *operation, id responseObject) {
NSLog(@"Invoking successblock for List Google DRIVE....");
} failure:^(AFHTTPRequestOperation *operation, NSError *error) {
NSLog(@"Invoking failure block DRIVE....");
}];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment