Table of Contents

TTMSFNCCloudCustomWhatsApp.GetMediaURL Method

Requests a temporary download URL for uploaded media by media identifier.

API unit family: TMSFNCCloudWhatsApp Declaring type: TTMSFNCCloudCustomWhatsApp

Overloads

Overload 1

Requests a temporary download URL for uploaded media by media identifier.

function GetMediaURL(AMediaID: String; AAsync: Boolean = true): String; overload;

Parameters

Name Description
AMediaID Media identifier assigned by the API.
AAsync Set to True to perform the request asynchronously when supported.

Returns

The media download URL for synchronous requests, or an empty string while an asynchronous request is pending.

Overload 2

Requests a temporary download URL for an uploaded media object.

function GetMediaURL(AMedia: TTMSFNCCloudWhatsAppMedia; AAsync: Boolean = true): String; overload;

Parameters

Name Description
AMedia Media object whose identifier is used for the request.
AAsync Set to True to perform the request asynchronously when supported.

Returns

The media download URL for synchronous requests, or an empty string while an asynchronous request is pending.