doutan5844 2019-04-20 02:40
浏览 35

Evernote Api:如何获取与开发者帐户关联的帐户记录列表

I've tested all of the php examples that came with the API and none gives me results. The Api was installed with composer. i have some errors resulted when running the script ( ips,locations,keys were changed here )

[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;
}

I've checked the linked account that has notes with those tags or keys but the api gives me no results returned.

How can i get the list of my TAGS from the linked account ? How can i get a list of my notes and/or notebooks from my account ?

The sandbox key is full access not basic.

I've searched for examples that i tried on the server, but the return was or ERROR 500 or empty page,

I've echo/printed the results but no results returned !

What i do wrong, or what do i need to do so the api work ?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 目详情-五一模拟赛详情页
    • ¥15 有了解d3和topogram.js库的吗?有偿请教
    • ¥100 任意维数的K均值聚类
    • ¥15 stamps做sbas-insar,时序沉降图怎么画
    • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
    • ¥15 关于#Java#的问题,如何解决?
    • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
    • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
    • ¥15 cmd cl 0x000007b
    • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line