2016-03-01 66 views
0

使用Cloud SDK PHP發揮Evernote的作用webhook。 Webhooks提供「notebookGuid」,我正在尋找使用getnotebook函數獲取和使用筆記本名稱的簡單方法。下面不起作用。從webhook獲取Evernote筆記本名稱

$guid = $_GET['notebookGuid']; //guid from webhook 
$notebook_object = $noteStore->getNotebook($access_token, $guid); //tried with and without the $access_token 

if ($notebook_object->name = 'myname') { //is name case-insensitive? 
$dosomething=1; 
} 

回答

0

你的代碼失敗了嗎?它看起來像你可能只是在做你的平等檢查錯誤,$notebook_object->name = 'myname'是一項任務。你可能想要像strcasecmp

相關問題