最近搜索


没有最近搜索

Alex's Avatar

Alex

已加入2023年8月09日

·

最后活动2024年1月25日

关注

0

关注者

0

活动总数

4

投票

0

订阅

2

活动概览

的最新活动 Alex

Alex 创建了一个帖子,

帖子 Developer - Zendesk Apps Framework (ZAF)
I want to show modal in some cases. And handle event like "close modal". 
I implement it like in documentation.

let thisClass = this,
   width = '400px',
   height = '620px',
   option = {
        location: 'modal',
        size: {
        width: width,
        height: height
       }
    };

thisClass.clientZendesk = ZAFClient.init();
thisClass.clientZendesk.invoke('instances.create', option).then(function(modalContext) {

let instanceGuid = modalContext['instances.create'][0].instanceGuid,
   modalClient = thisClass.clientZendesk.instance(instanceGuid);

modalClient.on('modal.close', function() {
        console.log("CLOSED modal")
    });
});
 

But console.log did not work. Did not execute callback for event 'modal.close'

modalClient.on('modal.close', function() {
    SOME_FUNCTION()
});

what wrong?

已于 2024年1月25日 发布 · Alex

0

关注者

2

投票

1

Comment


Alex 进行了评论,

评论Security and user access in Zendesk Support

For generate token i use link https://{{sub-domain}}.zendesk.com/oauth/tokens
after that try send request to endpoint https://api.getbase.com/v2/leads
and receive response:

"error": {
"code": "unauthorized",
"details": "Required access token is missing, malformed, expired, or invalid.",
"message": "request is unauthorized"
},
Where problem? how it fix? i asked twice to support but did not receive suggestion

查看评论 · 已于 2023年8月09日 发布 · Alex

0

关注者

0

投票

0

评论