getIntegrationsWhatsappWebhookWithHttpInfo method

Future<Response> getIntegrationsWhatsappWebhookWithHttpInfo()

WhatsApp Cloud API subscription challenge

Meta calls this once when the webhook is subscribed, carrying the verify token this deployment was configured with and a challenge to echo. The token is compared in constant time before the echo — answering the challenge without checking it would let anyone point their own app at this address and have it confirm the subscription.

Note: This method returns the HTTP Response.

Implementation

Future<Response> getIntegrationsWhatsappWebhookWithHttpInfo() async {
  // ignore: prefer_const_declarations
  final path = r'/v1/integrations/whatsapp/webhook';

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}