Jump to content

Welcome! You're currently a Guest.

If you'd like to join in the Discussion, or access additional features in our forums, please sign in with your Evernote Account here. Have an Evernote Account but forgot your password? Reset it! Don't have an account yet? Create One! You'll need to set your Display Name before your first post.

Photo

iOS SDK problem listing notes in linkedNotebooks

sharednotebooks linkednotebooks ios

  • Please log in to reply
3 replies to this topic

#1 herman

herman

  • Pip
  • Title: Member
  • Group: Members
  • 3 posts

Posted 02 July 2012 - 03:08 AM

Hi all,

New to the iOS api for evernote, so please bear with me.

The set up is that I am login as a user who is a recipient of a sharednotebook request. So I call the method EvernoteNoteStore listLinkedNotebooksWithSuccess to retrieve a list of linkedNotebooks and gather their shareKeys. Then I called EvernoteNoteStore.authenticateToSharedNotebookWithShareKey with a shareKey to try to get the list notes within the particular shared notebook. However, it throws an exception (EDAMSystemException) indicating either a bad formed shareKey or a bad signature on the shareKey.

Am I missing something here?

Thanks in advance.

#2 Julien Boedec

Julien Boedec

  • Title: Browncoat
  • Group: Evernote Employee
  • 408 posts

Posted 02 July 2012 - 05:57 PM

There might be an error in the way you are accessing the information. Have you looked at our Sharing chapter?

#3 herman

herman

  • Pip
  • Title: Member
  • Group: Members
  • 3 posts

Posted 02 July 2012 - 06:53 PM

Hi Julien,

So it looks like I need to create a new EvernoteNoteStore, how do I do that? I've try

EvernoteNoteStore *noteStore = [EvernoteNoteStore noteStore];

and this seems to use the same ShareSession from EvernoteSession when I was login. Do I need to create a new EvernoteSession?

#4 herman

herman

  • Pip
  • Title: Member
  • Group: Members
  • 3 posts

Posted 02 July 2012 - 08:36 PM

Ok,

I was able to get new noteStore by dropping down to lower level code, namely EDAMNoteStoreClient.

Now, I need to do the same and read the notes within the sharednotebook. I can get an instance of EDAMNote, but to call authenticateToSharedNote I need something called the "noteKey", where can I retrieve such key? The documentation only says that it is returned when someone called ShareNote, but my app doesn't really call shareNote at all.

Any help is appreciated.





Also tagged with one or more of these keywords: sharednotebooks, linkednotebooks, ios

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Clip to Evernote