Skip to content

Latest commit

 

History

History
84 lines (62 loc) · 2.53 KB

PlaybackIDApi.md

File metadata and controls

84 lines (62 loc) · 2.53 KB

Mux.Csharp.Sdk.Api.PlaybackIDApi

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

GetAssetOrLivestreamId

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.

Example

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

Parameters

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

Return type

GetAssetOrLiveStreamIdResponse

Authorization

accessToken

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 OK -

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