• Announcements

    • Shane D.

      Evernote Business Beta - Spaces   12/20/2017

      We're very excited to announce the public beta of an upcoming rework for Evernote Business! To learn more, go Here
    • Shane D.

      2018 Evernote Webinars   01/04/2018

      To kick off the new year, we're excited to announce our  updated schedule for our series of webinars! Please check the events calendar to see which one works best for you!
    • Shane D.

      Upcoming Forum Change Announcement   02/14/2018

      Hi All! You may be seeing some changes with overall organization and layout of the discussion forums. You can learn more by going to the 'Upcoming Forum Change Announcement' in the 'Community Announcements' sub-forum!  
  • 0
AntonM.

Evernote php - get notes from linked notebook

Idea

I am using this SDK - `https://github.com/evernote/evernote-cloud-sdk-php`

I can find notes in the my own notebooks, something like this:

    $client = new \Evernote\Client($token, false);
    
    $search = new \Evernote\Model\Search('*');
    
    $notebook = $client->getNotebook('notebook_id');
    
    $scope = \Evernote\Client::SEARCH_SCOPE_ALL;
    
    $order = \Evernote\Client::SORT_ORDER_REVERSE | \Evernote\Client::SORT_ORDER_RECENTLY_CREATED;
    
    $results = $client->findNotesWithSearch($search, $notebook, $scope, $order, 20);

It works, but if I try get notes from linked notebooks, it get empty result all time.

Tried implement this - `https://dev.evernote.com/doc/articles/sharing.php`

   

    $adClient = new \Evernote\AdvancedClient($token ,false);
    
    $store = $adClient->getSharedNoteStore('linked_notbook_id');
    
    $client = new \Evernote\Client($store->getToken(), false);
    
    $search = new \Evernote\Model\Search('*');
    
    $notebook = $carrier->getLinkedNotebooks()[0];
    
    $scope = \Evernote\Client::SEARCH_SCOPE_ALL;
    
    $order = \Evernote\Client::SORT_ORDER_REVERSE | \Evernote\Client::SORT_ORDER_RECENTLY_CREATED;
    
    $results = $client->findNotesWithSearch($search, $notebook, $scope, $order, 20);

The same, empty result.

Share this post


Link to post

1 reply to this idea

Recommended Posts

  • 0

Please post in StackOverflow and tag with "Evernote".  Programming help is being done there now.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now