/AWS1/IF_PPM=>SENDWHATSAPPCALLEVENT()¶
About SendWhatsAppCallEvent¶
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.
Method Signature¶
METHODS /AWS1/IF_PPM~SENDWHATSAPPCALLEVENT
IMPORTING
!IV_ORIGINATIONPHONENUMBERID TYPE /AWS1/PPMWHATSAPPPHONENUMBERID OPTIONAL
!IV_METAAPIVERSION TYPE /AWS1/PPMSTRING OPTIONAL
!IV_CALLEVENT TYPE /AWS1/PPMWHATSAPPCALLEVENTBLOB OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_ppmsendwhtappcallev01
RAISING
/AWS1/CX_PPMACCESSDENIEDEX
/AWS1/CX_PPMVALIDATIONEX
/AWS1/CX_PPMACCDENIEDBYMETAEX
/AWS1/CX_PPMCONFLICTEXCEPTION
/AWS1/CX_PPMDEPENDENCYEX
/AWS1/CX_PPMINTERNALSERVICEEX
/AWS1/CX_PPMINVALIDPARAMSEX
/AWS1/CX_PPMRESOURCENOTFOUNDEX
/AWS1/CX_PPMTHROTTLEDREQUESTEX
/AWS1/CX_PPMCLIENTEXC
/AWS1/CX_PPMSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_originationphonenumberid TYPE /AWS1/PPMWHATSAPPPHONENUMBERID /AWS1/PPMWHATSAPPPHONENUMBERID¶
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.
iv_metaapiversion TYPE /AWS1/PPMSTRING /AWS1/PPMSTRING¶
The version of the Meta Graph API to use for the request.
iv_callevent TYPE /AWS1/PPMWHATSAPPCALLEVENTBLOB /AWS1/PPMWHATSAPPCALLEVENTBLOB¶
The call event payload to send, as a JSON blob in the format defined by the Meta calling API.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_ppmsendwhtappcallev01 /AWS1/CL_PPMSENDWHTAPPCALLEV01¶
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->sendwhatsappcallevent(
iv_callevent = '5347567362473873563239796247513D'
iv_metaapiversion = |string|
iv_originationphonenumberid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_string = lo_result->get_callid( ).
ENDIF.