Download a file from an mxc:// or localmxc:// URL to the device running the Beeper Client API and return the local file URL.
Download a file
<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
$client = new Client(accessToken: 'My Access Token');
$response = $client->assets->download(
url: 'mxc://example.org/Q4x9CqGz1pB3Oa6XgJ'
);
var_dump($response);{
"error": "error",
"srcURL": "srcURL"
}Returns Examples
{
"error": "error",
"srcURL": "srcURL"
}