Skip to content

v2.1.0 #76

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
Mux.Csharp.Sdk.sln
README.md
docs/AbridgedVideoView.md
docs/Annotation.md
docs/AnnotationInput.md
docs/AnnotationResponse.md
docs/AnnotationsApi.md
docs/Asset.md
docs/AssetErrors.md
docs/AssetGeneratedSubtitleSettings.md
Expand Down Expand Up @@ -77,6 +81,7 @@ docs/InputTrack.md
docs/Insight.md
docs/LaunchWebInputResponse.md
docs/ListAllMetricValuesResponse.md
docs/ListAnnotationsResponse.md
docs/ListAssetsResponse.md
docs/ListBreakdownValuesResponse.md
docs/ListBreakdownValuesResponseMeta.md
Expand Down Expand Up @@ -176,6 +181,7 @@ docs/WebInput.md
docs/WebInputResponse.md
docs/WebInputsApi.md
src/Mux.Csharp.Sdk.Test/Mux.Csharp.Sdk.Test.csproj
src/Mux.Csharp.Sdk/Api/AnnotationsApi.cs
src/Mux.Csharp.Sdk/Api/AssetsApi.cs
src/Mux.Csharp.Sdk/Api/DRMConfigurationsApi.cs
src/Mux.Csharp.Sdk/Api/DeliveryUsageApi.cs
Expand Down Expand Up @@ -214,6 +220,9 @@ src/Mux.Csharp.Sdk/Client/RequestOptions.cs
src/Mux.Csharp.Sdk/Client/RetryConfiguration.cs
src/Mux.Csharp.Sdk/Model/AbridgedVideoView.cs
src/Mux.Csharp.Sdk/Model/AbstractOpenAPISchema.cs
src/Mux.Csharp.Sdk/Model/Annotation.cs
src/Mux.Csharp.Sdk/Model/AnnotationInput.cs
src/Mux.Csharp.Sdk/Model/AnnotationResponse.cs
src/Mux.Csharp.Sdk/Model/Asset.cs
src/Mux.Csharp.Sdk/Model/AssetErrors.cs
src/Mux.Csharp.Sdk/Model/AssetGeneratedSubtitleSettings.cs
Expand Down Expand Up @@ -280,6 +289,7 @@ src/Mux.Csharp.Sdk/Model/InputTrack.cs
src/Mux.Csharp.Sdk/Model/Insight.cs
src/Mux.Csharp.Sdk/Model/LaunchWebInputResponse.cs
src/Mux.Csharp.Sdk/Model/ListAllMetricValuesResponse.cs
src/Mux.Csharp.Sdk/Model/ListAnnotationsResponse.cs
src/Mux.Csharp.Sdk/Model/ListAssetsResponse.cs
src/Mux.Csharp.Sdk/Model/ListBreakdownValuesResponse.cs
src/Mux.Csharp.Sdk/Model/ListBreakdownValuesResponseMeta.cs
Expand Down
10 changes: 5 additions & 5 deletions Mux.Csharp.Sdk.sln
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mux.Csharp.Sdk", "src\Mux.Csharp.Sdk\Mux.Csharp.Sdk.csproj", "{774F32CB-5292-4985-BAA4-204DFB4F8367}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mux.Csharp.Sdk", "src\Mux.Csharp.Sdk\Mux.Csharp.Sdk.csproj", "{A2056C50-9EF7-42AF-95E5-857A945B95F0}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mux.Csharp.Sdk.Test", "src\Mux.Csharp.Sdk.Test\Mux.Csharp.Sdk.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
EndProject
Expand All @@ -12,10 +12,10 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{774F32CB-5292-4985-BAA4-204DFB4F8367}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{774F32CB-5292-4985-BAA4-204DFB4F8367}.Debug|Any CPU.Build.0 = Debug|Any CPU
{774F32CB-5292-4985-BAA4-204DFB4F8367}.Release|Any CPU.ActiveCfg = Release|Any CPU
{774F32CB-5292-4985-BAA4-204DFB4F8367}.Release|Any CPU.Build.0 = Release|Any CPU
{A2056C50-9EF7-42AF-95E5-857A945B95F0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A2056C50-9EF7-42AF-95E5-857A945B95F0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A2056C50-9EF7-42AF-95E5-857A945B95F0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A2056C50-9EF7-42AF-95E5-857A945B95F0}.Release|Any CPU.Build.0 = Release|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down
33 changes: 10 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Mux is how developers build online video. This API encompasses both Mux Video an
At this moment, this SDK is not suitable for parsing or modeling webhook payloads, due to some incompatibilities in our API spec and our SDK generation tooling. We are working on resolving these issues, but for now you should only use this SDK for Mux's REST APIs.

- API version: v1
- SDK version: 2.0.1
- SDK version: 2.1.0
[https://docs.mux.com](https://docs.mux.com)

<a name="frameworks-supported"></a>
Expand Down Expand Up @@ -83,28 +83,6 @@ namespace Example
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 AssetsApi(config);
var createAssetRequest = new CreateAssetRequest(); // CreateAssetRequest |

try
{
// Create an asset
AssetResponse result = apiInstance.CreateAsset(createAssetRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AssetsApi.CreateAsset: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}

}
}
}
Expand All @@ -117,6 +95,11 @@ All URIs are relative to *https://api.mux.com*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*AnnotationsApi* | [**CreateAnnotation**](docs/AnnotationsApi.md#createannotation) | **POST** /data/v1/annotations | Create Annotation
*AnnotationsApi* | [**DeleteAnnotation**](docs/AnnotationsApi.md#deleteannotation) | **DELETE** /data/v1/annotations/{ANNOTATION_ID} | Delete Annotation
*AnnotationsApi* | [**GetAnnotation**](docs/AnnotationsApi.md#getannotation) | **GET** /data/v1/annotations/{ANNOTATION_ID} | Get Annotation
*AnnotationsApi* | [**ListAnnotations**](docs/AnnotationsApi.md#listannotations) | **GET** /data/v1/annotations | List Annotations
*AnnotationsApi* | [**UpdateAnnotation**](docs/AnnotationsApi.md#updateannotation) | **PATCH** /data/v1/annotations/{ANNOTATION_ID} | Update Annotation
*AssetsApi* | [**CreateAsset**](docs/AssetsApi.md#createasset) | **POST** /video/v1/assets | Create an asset
*AssetsApi* | [**CreateAssetPlaybackId**](docs/AssetsApi.md#createassetplaybackid) | **POST** /video/v1/assets/{ASSET_ID}/playback-ids | Create a playback ID
*AssetsApi* | [**CreateAssetStaticRendition**](docs/AssetsApi.md#createassetstaticrendition) | **POST** /video/v1/assets/{ASSET_ID}/static-renditions | Create a static rendition for an asset
Expand Down Expand Up @@ -221,6 +204,9 @@ Class | Method | HTTP request | Description
## Documentation for Models

- [Model.AbridgedVideoView](docs/AbridgedVideoView.md)
- [Model.Annotation](docs/Annotation.md)
- [Model.AnnotationInput](docs/AnnotationInput.md)
- [Model.AnnotationResponse](docs/AnnotationResponse.md)
- [Model.Asset](docs/Asset.md)
- [Model.AssetErrors](docs/AssetErrors.md)
- [Model.AssetGeneratedSubtitleSettings](docs/AssetGeneratedSubtitleSettings.md)
Expand Down Expand Up @@ -287,6 +273,7 @@ Class | Method | HTTP request | Description
- [Model.Insight](docs/Insight.md)
- [Model.LaunchWebInputResponse](docs/LaunchWebInputResponse.md)
- [Model.ListAllMetricValuesResponse](docs/ListAllMetricValuesResponse.md)
- [Model.ListAnnotationsResponse](docs/ListAnnotationsResponse.md)
- [Model.ListAssetsResponse](docs/ListAssetsResponse.md)
- [Model.ListBreakdownValuesResponse](docs/ListBreakdownValuesResponse.md)
- [Model.ListBreakdownValuesResponseMeta](docs/ListBreakdownValuesResponseMeta.md)
Expand Down
13 changes: 13 additions & 0 deletions docs/Annotation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Mux.Csharp.Sdk.Model.Annotation

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Id** | **Guid** | Unique identifier for the annotation | [optional]
**Note** | **string** | The annotation note content | [optional]
**Date** | **DateTime** | Datetime when the annotation applies | [optional]
**SubPropertyId** | **string** | Customer-defined sub-property identifier | [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)

12 changes: 12 additions & 0 deletions docs/AnnotationInput.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Mux.Csharp.Sdk.Model.AnnotationInput

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Note** | **string** | The annotation note content | [optional]
**Date** | **long** | Datetime when the annotation applies (Unix timestamp) | [optional]
**SubPropertyId** | **string** | Customer-defined sub-property identifier | [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)

10 changes: 10 additions & 0 deletions docs/AnnotationResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Mux.Csharp.Sdk.Model.AnnotationResponse

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Data** | [**Annotation**](Annotation.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)

Loading
Loading