All URIs are relative to https://api.mux.com
Method | HTTP request | Description |
---|---|---|
GetAssetOrLivestreamId | GET /video/v1/playback-ids/{PLAYBACK_ID} | Retrieve an asset or live stream ID |
GetAssetOrLiveStreamIdResponse GetAssetOrLivestreamId (string PLAYBACK_ID)
Retrieve an asset or live stream ID
Retrieves the Identifier of the Asset or Live Stream associated with the Playback ID.
using System.Collections.Generic;
using System.Diagnostics;
using Mux.Csharp.Sdk.Api;
using Mux.Csharp.Sdk.Client;
using Mux.Csharp.Sdk.Model;
namespace Example
{
public class GetAssetOrLivestreamIdExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.mux.com";
// Configure HTTP basic authorization: accessToken
config.Username = "YOUR_USERNAME";
config.Password = "YOUR_PASSWORD";
var apiInstance = new PlaybackIDApi(config);
var PLAYBACK_ID = "PLAYBACK_ID_example"; // string | The live stream's playback ID.
try
{
// Retrieve an asset or live stream ID
GetAssetOrLiveStreamIdResponse result = apiInstance.GetAssetOrLivestreamId(PLAYBACK_ID);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PlaybackIDApi.GetAssetOrLivestreamId: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
PLAYBACK_ID | string | The live stream's playback ID. |
GetAssetOrLiveStreamIdResponse
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]