最近の検索


最近の検索はありません

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


サインインしてコメントを残してください。

お探しのものが見つかりませんか?

新規投稿