代码之家  ›  专栏  ›  技术社区  ›  Pila

如何通过rest API执行flash调用验证?

  •  0
  • Pila  · 技术社区  · 7 年前

    我有一个1000多个电话号码的列表,我正试图通过拨打flash电话来使用sinch verification REST API进行验证。然而,我总是从端点得到这样的响应。。。

    [
        callId:fa61c8ae-2936-4c3d-a89c-ca852d9bd464, 
        reason:Expired, 
        method:flashcall, 
        identity:[
            endpoint:+2348166180681, 
            verified:false, type:number
        ], 
        id:fa61c8ae-2936-4c3d-a89c-ca852d9bd464, 
        event:VerificationResultEvent, 
        status:FAIL
    ]
    

    我正在执行以下步骤。。。

    1. 向发出POST请求 https://verificationapi-v1.sinch.com/verification/v1/verifications 使用以下正文。。。

      ["identity" : ["type": "number","endpoint": "+xxxxxxxxxx"], "flashCallOptions": ["dialTimeout": 10],"method": "flashCall"]

    2. 听a verificationRequestEvent 并以 [action: "allow"]

    当我这样做时,我会通过 VerificationResultEvent 如上所示。

    有什么我做得不对的吗?我目前的怀疑是,与其只在第二步做出反应 [操作:“允许”] ,我应该再提出一个发帖请求吗?

    0 回复  |  直到 7 年前
    推荐文章