AntonM. 0 Posted July 12, 2017 Share Posted July 12, 2017 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. Link to comment
Level 5* phils 220 Posted July 15, 2017 Level 5* Share Posted July 15, 2017 Please post in StackOverflow and tag with "Evernote". Programming help is being done there now. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.