/AWS1/CL_PPM=>GETWHATSAPPMESSAGEMEDIA()
¶
About GetWhatsAppMessageMedia¶
Get a media file from the WhatsApp service. On successful completion the media file is
retrieved from Meta and stored in the specified Amazon S3 bucket. Use either
destinationS3File
or destinationS3PresignedUrl
for the
destination. If both are used then an InvalidParameterException
is
returned.
Method Signature¶
IMPORTING¶
Required arguments:¶
IV_MEDIAID
TYPE /AWS1/PPMWHATSAPPMEDIAID
/AWS1/PPMWHATSAPPMEDIAID
¶
The unique identifier for the media file.
IV_ORIGINATIONPHONENUMBERID
TYPE /AWS1/PPMWHATSAPPPHONENUMBERID
/AWS1/PPMWHATSAPPPHONENUMBERID
¶
The unique identifier of the originating phone number for the WhatsApp message media. The phone number identifiers are formatted as
phone-number-id-01234567890123456789012345678901
. Use GetLinkedWhatsAppBusinessAccount to find a phone number's id.
Optional arguments:¶
IV_METADATAONLY
TYPE /AWS1/PPMBOOLEAN
/AWS1/PPMBOOLEAN
¶
Set to
True
to get only the metadata for the file.
IO_DESTINATIONS3PRESIGNEDURL
TYPE REF TO /AWS1/CL_PPMS3PRESIGNEDURL
/AWS1/CL_PPMS3PRESIGNEDURL
¶
The presign url of the media file.
IO_DESTINATIONS3FILE
TYPE REF TO /AWS1/CL_PPMS3FILE
/AWS1/CL_PPMS3FILE
¶
The
bucketName
andkey
of the S3 media file.