至于文档我已经注册了webhook端点,并从支持团队收到了“Endpoint updated successfully”的电子邮件。因此,我试图在Evernote创建或更新时收到通知,但不幸的是我无法收到任何通知。我怀疑是 - > Webhook端点是否成功注册?
- >如果注册成功,如何获取通知网址(如 [基本网址] /?userId = [用户ID]& notebookGuid = [笔记本GUID]& reason = notebook_create )格式帐户何时创建或更新?
我试过的代码: //只需在通知时路由到功能
function evernote_notification(response,request){
var parsedUrl = url.parse(request.url, true);
var queryAsObject = parsedUrl.query;
console.log("evernote_notification:- queryAsObject- "+JSON.stringify(queryAsObject));
var userId=parseUrl.query.userId;
var guid=parseUrl.query.guid;
var reagon=parseUrl.query.reason;
console.log("evernote_notification:- userId="+userId+" &&guid= "+guid+" &&reagon= "+reagon);
if (userId && guid && reagon) {
//here I need to get userinformation with updated details of his/her account
}};
有人可以建议我在哪里做错了吗?