Twilio Twiml Node.js访问令牌和功能有何区别?

问题描述

当我浏览Twilio提供的文档时,他们使用了功能令牌和访问令牌。访问令牌与功能令牌有何不同?

如何在功能令牌中使用pushCredentialSid

const accesstoken = new Accesstoken(
                        process.env.TWILIO_ACCOUNT_SID,process.env.TWILIO_API_KEY,process.env.TWILIO_API_SECRET,TWILIO_PUSH_CRED
                    );
                    accesstoken.identity = identity;
                    const grant = new VoiceGrant({
                        outgoingApplicationSid: process.env.TWILIO_TWIML_APP_SID,incomingallow: true,pushCredentialSid: TWILIO_PUSH_CRED
                    });
                    accesstoken.addGrant(grant);

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)