最近搜索


没有最近搜索

Issue querying a whatsapp integration via API



已于 2024年5月30日 发布

Hello,

 

As part of the development of our product I need to query existing integrations from a Sunshine Conversations app. The answer that we get from the server does not match the API specifications, this is the response (with values redacted):

{
  "integrations": [
    {
      "_id": "***",
      "status": "active",
      "type": "whatsapp",
      "displayName": "Whatsapp",
      "brandId": "***",
      "accountId": "***",
      "businessManagerId": "***",
      "appId": "***",
      "phoneNumber": "***",
      "phoneNumberId": "***"
    }
  ],
  "hasMore": false,
  "offset": 0
}

But the OpenAPI specification requires a deploymentId field to be present there. The lack of it causes the python client library to fail with ValueError: Invalid value for `deployment_id`, must not be `None`

 

It looks to me that either the OpenAPI spec is wrong or the server doesn't implement it correctly. Regardless, how can I get the client library to work with that call?


0

1

1 条评论

Hello there,
 
the notion of deployment only exist for integration that are hosted by a third party service such as sunshine conversations. However, in 2022, whatsapp started to offer hosting service with their Cloud API meaning there was no need for remote services to have to host the deployment. We slowly transitioned every number we registered toward the cloud API and now the notion of deployment has disappeared from our APi simply because we're not hosting any deployment anymore, those are all in whatsapp cloud, we're just handling the integration allowing the communication between whatsapp services and ours.
 
It is, therefore, safe for you to remove that notio from your client side.
 
Kind regards.

0


请先登录再写评论。

找不到所需的内容?

新建帖子