Created
May 25, 2013 05:10
-
-
Save evernotegists/5647974 to your computer and use it in GitHub Desktop.
Get resource example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (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