MediaFile
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
GET |
/api/v1/organizations/{organization_id}/browser_sessions/{browser_session_id}/media/{id}/files/{file_id} |
load |
Retained file bytes |
Examples
One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.
Golang
Construct client as shown in the Golang setup, then call the operations:
media_file, err := client.MediaFile(nil).Load(map[string]any{"browser_session_id": "example", "id": "example_id", "media_id": "example", "organization_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(media_file)
Lua
Construct client as shown in the Lua setup, then call the operations:
local media_file, err = client:MediaFile():load({ browser_session_id = "example", id = "example_id", media_id = "example", organization_id = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$media_file = $client->MediaFile()->load(["browser_session_id" => "example", "id" => "example_id", "media_id" => "example", "organization_id" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
media_file = client.MediaFile().load({"browser_session_id": "example", "id": "example_id", "media_id": "example", "organization_id": "example"})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
media_file = client.MediaFile.load({ "browser_session_id" => "example", "id" => "example_id", "media_id" => "example", "organization_id" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const media_file = await client.MediaFile().load({ browser_session_id: "example", id: "example_id", media_id: "example", organization_id: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
id |
string |
No | Id |
load
GET /api/v1/organizations/{organization_id}/browser_sessions/{browser_session_id}/media/{id}/files/{file_id}
Operation ID: get_api_v1_organizations_organization_id_browser_sessions_browser_session_id_media_id_files_file_id_.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
browser_session_id |
path |
string |
Yes | |
id |
path |
string |
Yes | |
file_id |
path |
string |
Yes | |
inline |
query |
boolean |
No | |
Range |
header |
string |
No |
Responses
200: Retained file bytes
application/json
The response is object.
image/png
The response is string (binary).
video/webm
The response is string (binary).
206: Requested byte range
video/webm
The response is string (binary).