Skip to content

Instantly share code, notes, and snippets.

@evernotegists
Created May 25, 2013 05:12
Show Gist options
  • Save evernotegists/5647981 to your computer and use it in GitHub Desktop.
Save evernotegists/5647981 to your computer and use it in GitHub Desktop.
Share single note
- (void)shareSingleNoteWithNoteGUID:(NSString*)noteGUID
withShardId:(NSString*)shardId {
// Share a single note and return the public URL for the note
[[EvernoteNoteStore noteStore] shareNoteWithGuid:noteGUID success:^(NSString *noteKey) {
NSString* shareURL = [NSString stringWithFormat:@"%@/shard/%@/sh/%@/%@",[[EvernoteSession sharedSession] host] ,shardId,noteGUID, noteKey];
NSLog(@"Share URL : %@",shareURL);
} failure:^(NSError *error) {
NSLog(@"Error : %@",error);
}];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment