Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error: Call to undefined method Evernote\Model\Notebook::isLinked() #10

Closed
Laurent-Sarrazin opened this issue Feb 24, 2015 · 0 comments

Comments

@Laurent-Sarrazin
Copy link
Contributor

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);

/**

  • 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;

/**

  • The number of results
    */
    $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;

echo "<BR>";

}

}

I just want to get all notes in a notebook with specific GUID.

Thank You.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant