send_whats_app_call_event
async
¶
send_whats_app_call_event(
origination_phone_number_id: WhatsAppPhoneNumberId,
meta_api_version: str,
call_event: WhatsAppCallEventBlob,
*,
config_overrides: Optional[AsyncSocialMessagingClientConfig] = None,
) -> SendWhatsAppCallEventOutput
Sends a WhatsApp calling event, such as connecting or terminating a call, for a business phone number. This operation passes the event through to Meta. To use this operation, the origination phone number must belong to a WhatsApp Business Account that is linked to your Amazon Web Services account.
Parameters:
-
origination_phone_number_id(WhatsAppPhoneNumberId) –The unique identifier of the origination phone number for the call. The phone number identifiers are formatted as
phone-number-id-01234567890123456789012345678901. UseGetLinkedWhatsAppBusinessAccountto find a phone number's ID. -
meta_api_version(str) –The version of the Meta Graph API to use for the request.
-
call_event(WhatsAppCallEventBlob) –The call event payload to send, as a JSON blob in the format defined by the Meta calling API.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ValidationException–The request contains an invalid parameter value.
-
AccessDeniedByMetaException–You do not have sufficient access to perform this action.
-
ConflictException–Your request has conflicting operations. This can occur if you're trying to perform more than one operation on the same resource at the same time.
-
DependencyException–Thrown when performing an action because a dependency would be broken.
-
InternalServiceException–The request processing has failed because of an unknown error, exception, or failure.
-
InvalidParametersException–One or more parameters provided to the action are not valid.
-
ResourceNotFoundException–The resource was not found.
-
ThrottledRequestException–The request was denied due to request throttling.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_socialmessaging/_services/async_social_messaging.py
2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 | |