我已经测试了API附带的所有php示例,但都没有给我结果。 Api已随作曲家一起安装。 运行脚本时出现一些错误(ips,locations,keys在这里更改了)
[Sat Apr 20 02:20:51.324822 2019] [fcgid:warn] [pid 25930] [client *ip*] mod_fcgid: stderr: PHP Fatal error: Uncaught EDAM\\Error\\EDAMUserException in /server/public_html/vendor/evernote/evernote-cloud-sdk-php/src/EDAM/UserStore/UserStore.php:2603
[Sat Apr 20 02:20:51.324885 2019] [fcgid:warn] [pid 25930] [client *ip*] mod_fcgid: stderr: Stack trace:
[Sat Apr 20 02:20:51.324899 2019] [fcgid:warn] [pid 25930] [client *ip*] mod_fcgid: stderr: #0 /server/public_html/vendor/evernote/evernote-cloud-sdk-php/src/EDAM/UserStore/UserStore.php(543): EDAM\\UserStore\\UserStore_getUser_result->read(Object(Thrift\\Protocol\\TBinaryProtocol))
[Sat Apr 20 02:20:51.324913 2019] [fcgid:warn] [pid 25930] [client *ip*] mod_fcgid: stderr: #1 /server/public_html/vendor/evernote/evernote-cloud-sdk-php/src/EDAM/UserStore/UserStore.php(504): EDAM\\UserStore\\UserStoreClient->recv_getUser()
[Sat Apr 20 02:20:51.324925 2019] [fcgid:warn] [pid 25930] [client *ip*] mod_fcgid: stderr: #2 [internal function]: EDAM\\UserStore\\UserStoreClient->getUser('oceanindien-ful...')
[Sat Apr 20 02:20:51.324936 2019] [fcgid:warn] [pid 25930] [client *ip*] mod_fcgid: stderr: #3 /server/public_html/vendor/evernote/evernote-cloud-sdk-php/src/Evernote/Store/Store.php(50): call_user_func_array(Array, Array)
[Sat Apr 20 02:20:51.324973 2019] [fcgid:warn] [pid 25930] [client *ip*] mod_fcgid: stderr: #4 /server/public_html/test.php(207): Evernote\\Store\\Store->__call('getUser', Array)
[Sat Apr 20 02:20:51.324984 2019] [fcgid:warn] [pid 25930] [client *ip*] mod_fcgid: stderr: #5 {main}
[Sat Apr 20 02:20:51.324993 2019] [fcgid:warn] [pid 25930] [client *ip*] mod_fcgid: stderr: thrown in /server/public_html/vendor/evernote/evernote-cloud-sdk-php/src/EDAM/UserStore/UserStore.php on line 2603
$token = 'my-real-token-here';
$sandbox = true;
$china = false;
$client = new \Evernote\Client($token, $sandbox, null, null, $china);
$search = new \Evernote\Model\Search('comores');
$notebook = null;
$scope = \Evernote\Client::SEARCH_SCOPE_BUSINESS;
$order = \Evernote\Client::SORT_ORDER_REVERSE | \Evernote\Client::SORT_ORDER_RECENTLY_CREATED;
$maxResult = 5;
$results = $client->findNotesWithSearch($search, $notebook, $scope, $order, $maxResult);
var_dump($results);
foreach ($results as $result) {
$noteGuid = $result->guid;
$noteType = $result->type;
$noteTitle = $result->title;
$noteCreated = $result->created;
$noteUpdated = $result->updated;
}
我检查了关联帐户,其中包含带有这些标签或键的注释,但api没有返回结果。
如何从链接的帐户中获取我的标签列表? 如何从我的帐户中获取我的笔记和/或笔记本的列表?
沙箱键是完全访问权限,不是基本权限。
我已经搜索了我在服务器上尝试过的示例,但是返回的是ERROR 500或空白页,
我已经回显/打印了结果,但是没有返回结果!
我做错了什么,或者我需要做什么才能使api工作?