You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am upgrading my api integration to cloud sdk php version,
When searching notes in a notebook , i am geting following error.
Fatal error: Call to undefined method Evernote\Model\Notebook::isLinked() in /var/www/clients/client1/web11/web/cronjobs/evernote-api/vendor/evernote/evernote-cloud-sdk-php/src/Evernote/Client.php on line 839
below is my search method.
function listNotes($guid,$token)
{
echo $sandbox = false;
$client = new \Evernote\Client($token, $sandbox);
/**
The search string
*/
$search = new \Evernote\Model\Search('attachments');
/**
The notebook to search in
*/
$notebook = new Notebook();//null;
$notebook->notebookGuid='242fcb3a-be91-4482-8d5d-5c122424c6ad';
/**
The scope of the search
*/
$scope = \Evernote\Client::SEARCH_SCOPE_PERSONAL;
/**
The order of the sort
*/
$order = \Evernote\Client::SORT_ORDER_REVERSE | \Evernote\Client::SORT_ORDER_RECENTLY_CREATED;
Hi,
I am upgrading my api integration to cloud sdk php version,
When searching notes in a notebook , i am geting following error.
Fatal error: Call to undefined method Evernote\Model\Notebook::isLinked() in /var/www/clients/client1/web11/web/cronjobs/evernote-api/vendor/evernote/evernote-cloud-sdk-php/src/Evernote/Client.php on line 839
below is my search method.
function listNotes($guid,$token)
{
echo $sandbox = false;
$client = new \Evernote\Client($token, $sandbox);
/**
*/
$search = new \Evernote\Model\Search('attachments');
/**
*/
$notebook = new Notebook();//null;
$notebook->notebookGuid='242fcb3a-be91-4482-8d5d-5c122424c6ad';
/**
*/
$scope = \Evernote\Client::SEARCH_SCOPE_PERSONAL;
/**
*/
$order = \Evernote\Client::SORT_ORDER_REVERSE | \Evernote\Client::SORT_ORDER_RECENTLY_CREATED;
/**
*/
$maxResult = 5;
$results = $client->findNotesWithSearch($search, $notebook, $scope, $order, $maxResult);
debug($results);
foreach ($results as $result) {
$noteGuid = $result->guid;
$noteType = $result->type;
echo $noteTitle = $result->title;
$noteCreated = $result->created;
$noteUpdated = $result->updated;
}
}
I just want to get all notes in a notebook with specific GUID.
Thank You.
The text was updated successfully, but these errors were encountered: