All URIs are relative to https://api.mux.com, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
getAssetOrLivestreamId() | GET /video/v1/playback-ids/{PLAYBACK_ID} | Retrieve an Asset or Live Stream ID |
getAssetOrLivestreamId($playback_id): \MuxPhp\Models\GetAssetOrLiveStreamIdResponse
Retrieve an Asset or Live Stream ID
Retrieves the Identifier of the Asset or Live Stream associated with the Playback ID.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: accessToken
$config = MuxPhp\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new MuxPhp\Api\PlaybackIDApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$playback_id = 'playback_id_example'; // string | The live stream's playback ID.
try {
$result = $apiInstance->getAssetOrLivestreamId($playback_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PlaybackIDApi->getAssetOrLivestreamId: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
playback_id | string | The live stream's playback ID. |
\MuxPhp\Models\GetAssetOrLiveStreamIdResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]