(legacy) getMediaDownloadURL
Note that the XML-RPC API is a legacy API and is no longer being developed, we recommend using the REST API instead.
The XML-RPC API provides 2 similar calls to retrieve URLs pointing to media. getMediaContentURL should only be used to fetch links for streaming. When you want to retrieve a link to a downloadable file, you have to use getMediaDownloadURL.
Description
Usage | getMediaDownloadURL(common, mediaid, period, trackingid, options) |
period | The number of seconds that this link should remain valid. If a value of zero is supplied, the link will always be valid and never expire (type int). |
ttrackingid | A positive integer used to track the usage of the returned download link. Instances where no special tracking is required, such as on the main client site, should use zero. Allocation of other tracking ids is left at the client's discretion. The maximum allowed id is 1,000,000 (type int). |
options | A struct with options and corresponding values (type struct). |
Returns | A URL to the media file (type string). |
Error codes | 432, 433 |