Skip to content

Latest commit

 

History

History
70 lines (47 loc) · 2.04 KB

PlaybackIDApi.md

File metadata and controls

70 lines (47 loc) · 2.04 KB

MuxPhp\PlaybackIDApi

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()

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.

Example

<?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;
}

Parameters

Name Type Description Notes
playback_id string The live stream's playback ID.

Return type

\MuxPhp\Models\GetAssetOrLiveStreamIdResponse

Authorization

accessToken

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]