我正在使用evernote API搜索笔记。我想知道如何仅在给定堆栈中搜索笔记。
目前,我有以下代码:
$client = new \Evernote\Client(config('app.evernote_token'), false);
$search = new \Evernote\Model\Search('ftp');
$notebook = null;
$scope = \Evernote\Client::SEARCH_SCOPE_NONE;
$order = \Evernote\Client::SORT_ORDER_REVERSE | \Evernote\Client::SORT_ORDER_RECENTLY_CREATED;
$maxResult = 50;
$results = $client->findNotesWithSearch($search, $notebook, $scope, $order,
$maxResult);
print_r($results);
答案 0 :(得分:0)
解决如下:
$search = new \Evernote\Model\Search('stack:"Palavra-chave"');