MK.IO
1.0.0-alpha3
This is a prerelease version of MK.IO.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package MK.IO --version 1.0.0-alpha3
NuGet\Install-Package MK.IO -Version 1.0.0-alpha3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MK.IO" Version="1.0.0-alpha3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MK.IO --version 1.0.0-alpha3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MK.IO, 1.0.0-alpha3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install MK.IO as a Cake Addin
#addin nuget:?package=MK.IO&version=1.0.0-alpha3&prerelease
// Install MK.IO as a Cake Tool
#tool nuget:?package=MK.IO&version=1.0.0-alpha3&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
MK.IO Client Library
A client library for MediaKind MK/IO.
Usage (C#, .NET)
MK/IO API Token
You need the MK/IO API token mkiotoken
to connect to the API. You can grab it using Fiddler when you connect to the MK/IO portal with your browser.
It is displayed in the header as x-mkio-token
. For example, you should see it on the second REST call to https://api.io.mediakind.com/api/ams/mkiosubscriptionname/stats/.
Sample code
using MK.IO;
using MK.IO.Models;
// **********************
// MK/IO Client creation
// **********************
var MKIOClient = new MKIOClientRest("mkiosubscriptionname", "mkiotoken");
// *****************
// asset operations
// *****************
// list assets
var mkioAssets = MKIOClient.ListAssets();
// get asset
var mkasset = MKIOClient.GetAsset("mmyassetname");
// create asset
var newasset = MKIOClient.CreateOrUpdateAsset("asset-33adc1873f", new MKIOAsset("asset-67c25a02-a672-40cd-a4da-dcc48b89acae", "description of asset", "storagename"));
// delete asset
MKIOClient.DeleteAsset("asset-33adc1873f");
// ******************************
// Streaming endpoint operations
// ******************************
// get streaming endpoint
var mkse = MKIOClient.GetStreamingEndpoint("streamingendpoint1");
// list streaming endpoints
var mkses = MKIOClient.ListStreamingEndpoints();
// create streaming endpoint
var newSe = MKIOClient.CreateStreamingEndpoint("streamingendpoint2", new MKIOStreamingEndpoint("francecentral", "my description", new MKIOStreamingEndpointSku("Standard", 600), 0, false), true);
// start, stop, delete streaming endpoint
MKIOClient.StartStreamingEndpoint("streamingendpoint1");
MKIOClient.StopStreamingEndpoint("streamingendpoint1");
MKIOClient.DeleteStreamingEndpoint("streamingendpoint2");
// ******************************
// Streaming locator operations
// ******************************
var mklocators = MKIOClient.ListStreamingLocators();
var mklocator1 = MKIOClient.GetStreamingLocator("locator-25452");
var mklocator2 = MKIOClient.CreateStreamingLocator("locator23", new MKIOStreamingLocator("copy-9ec48d1bf3-mig", "Predefined_ClearStreamingOnly"));
var pathsl = MKIOClient.ListUrlPathsStreamingLocator("locator-25452");
Async operations are also supported. For example :
// ******************************
// Streaming endpoint operations
// ******************************
// get streaming endpoint
var mkse = await MKIOClient.GetStreamingEndpointAsync("streamingendpoint1");
// list streaming endpoints
var mkses = await MKIOClient.ListStreamingEndpointsAsync();
// create streaming endpoint
var newSe = await MKIOClient.CreateStreamingEndpointAsync("streamingendpoint2", new MKIOStreamingEndpoint("francecentral", "my description", new MKIOStreamingEndpointSku("Standard", 600), 0, false), true);
// start, stop, delete streaming endpoint
await MKIOClient.StartStreamingEndpointAsync("streamingendpoint1");
await MKIOClient.StopStreamingEndpointAsync("streamingendpoint1");
await MKIOClient.DeleteStreamingEndpointAsync("streamingendpoint2");
Supported operations
In this version, operations are supported for :
- Assets
- Streaming endpoints
- Streaming locators
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net7.0
- Newtonsoft.Json (>= 13.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on MK.IO:
Repository | Stars |
---|---|
Azure/Azure-Media-Services-Explorer
Azure Media Services Explorer Tool
|
Version | Downloads | Last updated | |
---|---|---|---|
1.6.0 | 67 | 5/14/2024 | |
1.5.0 | 484 | 4/22/2024 | |
1.4.0 | 358 | 3/25/2024 | |
1.3.0 | 386 | 3/18/2024 | |
1.2.2 | 215 | 3/8/2024 | |
1.2.1 | 89 | 3/7/2024 | |
1.2.0 | 96 | 3/6/2024 | |
1.1.0 | 420 | 12/21/2023 | |
1.0.14 | 93 | 12/20/2023 | |
1.0.14-beta8 | 74 | 12/20/2023 | |
1.0.14-beta7 | 89 | 12/20/2023 | |
1.0.14-beta6 | 95 | 12/20/2023 | |
1.0.14-beta5 | 76 | 12/20/2023 | |
1.0.14-beta4 | 80 | 12/20/2023 | |
1.0.14-beta3 | 82 | 12/20/2023 | |
1.0.14-beta2 | 79 | 12/20/2023 | |
1.0.13 | 109 | 12/20/2023 | |
1.0.12 | 90 | 12/20/2023 | |
1.0.11 | 108 | 12/19/2023 | |
1.0.10 | 103 | 12/18/2023 | |
1.0.9 | 229 | 11/20/2023 | |
1.0.8 | 97 | 11/20/2023 | |
1.0.7 | 137 | 11/16/2023 | |
1.0.6 | 108 | 11/16/2023 | |
1.0.5 | 144 | 11/2/2023 | |
1.0.4 | 131 | 10/20/2023 | |
1.0.3 | 140 | 10/6/2023 | |
1.0.2 | 137 | 10/2/2023 | |
1.0.1 | 115 | 9/27/2023 | |
1.0.0-alpha7 | 97 | 9/26/2023 | |
1.0.0-alpha6 | 104 | 9/22/2023 | |
1.0.0-alpha5 | 118 | 9/8/2023 | |
1.0.0-alpha4 | 112 | 8/31/2023 | |
1.0.0-alpha3 | 117 | 8/30/2023 | |
1.0.0-alpha2 | 102 | 8/30/2023 |