Download an asset
assets.download(AssetDownloadParams**kwargs) -> AssetDownloadResponse
/v1/assets/download
Download a Matrix asset using its mxc:// or localmxc:// URL to the device running Beeper Desktop and return the local file URL.
Parameters
url: str
Matrix content URL (mxc:// or localmxc://) for the asset to download.
minLength1
Returns
Download an asset
from beeper_desktop_api import BeeperDesktop
client = BeeperDesktop(
access_token="My Access Token",
)
response = client.assets.download(
url="mxc://example.org/Q4x9CqGz1pB3Oa6XgJ",
)
print(response.error)
{
"error": "error",
"srcURL": "srcURL"
}Returns Examples
{
"error": "error",
"srcURL": "srcURL"
}