-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
1,335 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ Mux is how developers build online video. This API encompasses both Mux Video an | |
**PLEASE NOTE:** This is an early build of the Mux C# SDK, as evidenced by its pre-1.0 status, but we're reasonably certain of its stability and usability against the Mux API.. Documentation is currently best-effort, but it'll improve over time! Instead of contacting Mux Support, please file an issue on this repository or email [Mux DevEx]([email protected]) for assistance. | ||
|
||
- API version: v1 | ||
- SDK version: 0.12.0 | ||
- SDK version: 0.13.0 | ||
[https://docs.mux.com](https://docs.mux.com) | ||
|
||
<a name="frameworks-supported"></a> | ||
|
@@ -129,6 +129,8 @@ Class | Method | HTTP request | Description | |
*AssetsApi* | [**UpdateAsset**](docs/AssetsApi.md#updateasset) | **PATCH** /video/v1/assets/{ASSET_ID} | Update an asset | ||
*AssetsApi* | [**UpdateAssetMasterAccess**](docs/AssetsApi.md#updateassetmasteraccess) | **PUT** /video/v1/assets/{ASSET_ID}/master-access | Update master access | ||
*AssetsApi* | [**UpdateAssetMp4Support**](docs/AssetsApi.md#updateassetmp4support) | **PUT** /video/v1/assets/{ASSET_ID}/mp4-support | Update MP4 support | ||
*DRMConfigurationsApi* | [**GetDrmConfiguration**](docs/DRMConfigurationsApi.md#getdrmconfiguration) | **GET** /video/v1/drm-configurations/{DRM_CONFIGURATION_ID} | Retrieve a DRM Configuration | ||
*DRMConfigurationsApi* | [**ListDrmConfigurations**](docs/DRMConfigurationsApi.md#listdrmconfigurations) | **GET** /video/v1/drm-configurations | List DRM Configurations | ||
*DeliveryUsageApi* | [**ListDeliveryUsage**](docs/DeliveryUsageApi.md#listdeliveryusage) | **GET** /video/v1/delivery-usage | List Usage | ||
*DimensionsApi* | [**ListDimensionValues**](docs/DimensionsApi.md#listdimensionvalues) | **GET** /data/v1/dimensions/{DIMENSION_ID} | Lists the values for a specific dimension | ||
*DimensionsApi* | [**ListDimensions**](docs/DimensionsApi.md#listdimensions) | **GET** /data/v1/dimensions | List Dimensions | ||
|
@@ -250,6 +252,8 @@ Class | Method | HTTP request | Description | |
- [Model.CreateTranscriptionVocabularyRequest](docs/CreateTranscriptionVocabularyRequest.md) | ||
- [Model.CreateUploadRequest](docs/CreateUploadRequest.md) | ||
- [Model.CreateWebInputRequest](docs/CreateWebInputRequest.md) | ||
- [Model.DRMConfiguration](docs/DRMConfiguration.md) | ||
- [Model.DRMConfigurationResponse](docs/DRMConfigurationResponse.md) | ||
- [Model.DeliveryReport](docs/DeliveryReport.md) | ||
- [Model.DeliveryReportDeliveredSecondsByResolution](docs/DeliveryReportDeliveredSecondsByResolution.md) | ||
- [Model.DimensionValue](docs/DimensionValue.md) | ||
|
@@ -294,6 +298,7 @@ Class | Method | HTTP request | Description | |
- [Model.ListAssetsResponse](docs/ListAssetsResponse.md) | ||
- [Model.ListBreakdownValuesResponse](docs/ListBreakdownValuesResponse.md) | ||
- [Model.ListBreakdownValuesResponseMeta](docs/ListBreakdownValuesResponseMeta.md) | ||
- [Model.ListDRMConfigurationsResponse](docs/ListDRMConfigurationsResponse.md) | ||
- [Model.ListDeliveryUsageResponse](docs/ListDeliveryUsageResponse.md) | ||
- [Model.ListDimensionValuesResponse](docs/ListDimensionValuesResponse.md) | ||
- [Model.ListDimensionsResponse](docs/ListDimensionsResponse.md) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Mux.Csharp.Sdk.Model.DRMConfiguration | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**Id** | **string** | Unique identifier for the DRM Configuration. Max 255 characters. | [optional] | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Mux.Csharp.Sdk.Model.DRMConfigurationResponse | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**Data** | [**DRMConfiguration**](DRMConfiguration.md) | | [optional] | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,162 @@ | ||
# Mux.Csharp.Sdk.Api.DRMConfigurationsApi | ||
|
||
All URIs are relative to *https://api.mux.com* | ||
|
||
Method | HTTP request | Description | ||
------------- | ------------- | ------------- | ||
[**GetDrmConfiguration**](DRMConfigurationsApi.md#getdrmconfiguration) | **GET** /video/v1/drm-configurations/{DRM_CONFIGURATION_ID} | Retrieve a DRM Configuration | ||
[**ListDrmConfigurations**](DRMConfigurationsApi.md#listdrmconfigurations) | **GET** /video/v1/drm-configurations | List DRM Configurations | ||
|
||
|
||
<a name="getdrmconfiguration"></a> | ||
# **GetDrmConfiguration** | ||
> DRMConfigurationResponse GetDrmConfiguration (string DRM_CONFIGURATION_ID) | ||
Retrieve a DRM Configuration | ||
|
||
Retrieves a single DRM Configuration. | ||
|
||
### Example | ||
```csharp | ||
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 GetDrmConfigurationExample | ||
{ | ||
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 DRMConfigurationsApi(config); | ||
var DRM_CONFIGURATION_ID = "DRM_CONFIGURATION_ID_example"; // string | The DRM Configuration ID. | ||
try | ||
{ | ||
// Retrieve a DRM Configuration | ||
DRMConfigurationResponse result = apiInstance.GetDrmConfiguration(DRM_CONFIGURATION_ID); | ||
Debug.WriteLine(result); | ||
} | ||
catch (ApiException e) | ||
{ | ||
Debug.Print("Exception when calling DRMConfigurationsApi.GetDrmConfiguration: " + e.Message ); | ||
Debug.Print("Status Code: "+ e.ErrorCode); | ||
Debug.Print(e.StackTrace); | ||
} | ||
} | ||
} | ||
} | ||
``` | ||
|
||
### Parameters | ||
|
||
Name | Type | Description | Notes | ||
------------- | ------------- | ------------- | ------------- | ||
**DRM_CONFIGURATION_ID** | **string**| The DRM Configuration ID. | | ||
|
||
### Return type | ||
|
||
[**DRMConfigurationResponse**](DRMConfigurationResponse.md) | ||
|
||
### Authorization | ||
|
||
[accessToken](../README.md#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]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) | ||
|
||
<a name="listdrmconfigurations"></a> | ||
# **ListDrmConfigurations** | ||
> ListDRMConfigurationsResponse ListDrmConfigurations (int? page = null, int? limit = null) | ||
List DRM Configurations | ||
|
||
Returns a list of DRM Configurations | ||
|
||
### Example | ||
```csharp | ||
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 ListDrmConfigurationsExample | ||
{ | ||
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 DRMConfigurationsApi(config); | ||
var page = 1; // int? | Offset by this many pages, of the size of `limit` (optional) (default to 1) | ||
var limit = 25; // int? | Number of items to include in the response (optional) (default to 25) | ||
try | ||
{ | ||
// List DRM Configurations | ||
ListDRMConfigurationsResponse result = apiInstance.ListDrmConfigurations(page, limit); | ||
Debug.WriteLine(result); | ||
} | ||
catch (ApiException e) | ||
{ | ||
Debug.Print("Exception when calling DRMConfigurationsApi.ListDrmConfigurations: " + e.Message ); | ||
Debug.Print("Status Code: "+ e.ErrorCode); | ||
Debug.Print(e.StackTrace); | ||
} | ||
} | ||
} | ||
} | ||
``` | ||
|
||
### Parameters | ||
|
||
Name | Type | Description | Notes | ||
------------- | ------------- | ------------- | ------------- | ||
**page** | **int?**| Offset by this many pages, of the size of `limit` | [optional] [default to 1] | ||
**limit** | **int?**| Number of items to include in the response | [optional] [default to 25] | ||
|
||
### Return type | ||
|
||
[**ListDRMConfigurationsResponse**](ListDRMConfigurationsResponse.md) | ||
|
||
### Authorization | ||
|
||
[accessToken](../README.md#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]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) | ||
|
Oops, something went wrong.