2013-03-26 158 views
0

我已成功完成Evernote与PHP的认证。Evernote与PHP集成

我有这个回应。

Array ([oauth_token] => S=s1:U=6316e:E=144fcfdfdb9:C=13da54cd1ba:P=185:A=maheshchari-2599:V=2:H=6da806fe92b9289cf0334f04e2afdc55 [oauth_token_secret] => [edam_shard] => s1 [edam_userId] => 405870 [edam_expires] => 1395813907897 [edam_noteStoreUrl] => https://sandbox.evernote.com/shard/s1/notestore [edam_webApiUrlPrefix] => https://sandbox.evernote.com/shard/s1/) 

现在,我想要使用evernote进行身份验证的用户的笔记本列表。

我在网上做了大量的研究,但我找不到任何有用的东西,我已经知道,guid是必要的,以获得笔记本列表。

从哪里可以找到?我如何访问notestore和userstore?

如何调用notestore和userstore的函数来获取用户的帐户和用户的笔记在PHP中的数据?

在此先感谢。

回答

1

使用Evernote SDK for PHP,你可以列出像下面的方式笔记本:

$client = new Client(array('token' => $authToken)); 
$noteStore = $client->getNoteStore(); 
$notebooks = $noteStore->listNotebooks(); 

所有的API引用可以发现here

此外,你不应该公开你的令牌。请确保您放置的令牌字符串不能再使用。如果你需要更多的帮助,你可以得到supports from Evernote developer support