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

About getNote()'s question.


  • Please log in to reply
3 replies to this topic

#1 Lil Dre

Lil Dre

  • PipPip
  • Title: Alliance Lackey
  • Group: Members
  • 71 posts

Posted 15 August 2012 - 03:25 PM

Hello to everynoe!!

I wanna ask about getNote().

If I run these code without using getNote(), I can get 50 note's(findnote()'s limit) totally.

$listnote = $noteStore->listNotebooks($_SESSION['accessToken']);

$notebookone = $listnote;
$notebookguid = $notebookone->guid;

$filter = new NoteFilter();
$filter->notebookGuid = $notebookguid;
$offset = 0;
$result = array();

$notesList = $noteStore->findNotes($_SESSION['accessToken'], $filter, $offset, 100);

foreach ($notesList->notes as $note) {
echo $note->title . "<br />";
}


Now if I use getNote to print 50 notes, it just printing out only 10 to 20 notes(sometimes even print none of notes).


..............
foreach ($notesList->notes as $note) {
$fullNote = $noteStore->getNote($_SESSION['accessToken'], $note->guid, true, false, false, false);
echo $fullNote->title;
}


Why? Does getNote() have limit?

getNote() will print out the amount of unpredictable every single time.

I'm not sure what happen to geNote().

everybody knows? please.

#2 Julien Boedec

Julien Boedec

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

Posted 15 August 2012 - 04:16 PM

findNotes lets you search your notes and can return multiple results. GetNote on the other hand only accesses one note at a time (that is why you must specify the note's guid).

#3 Lil Dre

Lil Dre

  • PipPip
  • Title: Alliance Lackey
  • Group: Members
  • 71 posts

Posted 15 August 2012 - 11:34 PM

thanks julien.
so, if I really want to print my full notes(the amount of predictable) on a single page at the same time, how should I do?

I just need notes content.

#4 Julien Boedec

Julien Boedec

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

Posted 18 August 2012 - 07:12 PM

For those following this topic, an answer was given here.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Clip to Evernote