如何从Node.js中的Alexa请求中获取技能ID

时间:2019-02-12 10:47:31

标签: alexa alexa-skill

我正在使用具有express的node.js,Alexa sdk处理请求和响应。如何从Alexa发送到端点的响应中获取技能ID?

1 个答案:

答案 0 :(得分:2)

技能ID是会话对象内的应用程序ID。

    Function Mult_Lookup_and_Sum(strCommaSepInput As String, _
                                rngLookat As Excel.Range, _
                                lngSumCol As Long) As Double

Dim a() As String
Dim lngCounter As Long
Dim dblAdd As Double

a = Split(strCommaSepInput, ",")

Mult_Lookup_and_Sum = 0

For lngCounter = 0 To UBound(a)
    dblAdd = 0
    On Error Resume Next
    dblAdd = Application.WorksheetFunction.VLookup( _
                    Trim(a(lngCounter)), rngLookat, lngSumCol, 0)
    On Error GoTo 0
    Mult_Lookup_and_Sum = Mult_Lookup_and_Sum + _
                dblAdd

Next lngCounter

Erase a

End Function