Skip to content

Instantly share code, notes, and snippets.

@evernotegists
Created May 25, 2013 05:10
Show Gist options
  • Save evernotegists/5647974 to your computer and use it in GitHub Desktop.
Save evernotegists/5647974 to your computer and use it in GitHub Desktop.
Get resource example
- (void)getResourceWithGUID:(NSString*)resourceGUID {
[[EvernoteNoteStore noteStore] getResourceWithGuid:resourceGUID withData:YES withRecognition:NO withAttributes:YES withAlternateDate:NO success:^(EDAMResource *resource) {
NSData* fileContent = resource.data.body;
NSString* fileType = resource.mime;
NSString* fileName = resource.attributes.fileName;
} failure:^(NSError *error) {
NSLog(@"Error : %@",error);
}];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment