Skip to content

Commit b05f9aa

Browse files
author
olivierapivideo
authored
Add video tags endpoint
1 parent 8366500 commit b05f9aa

File tree

15 files changed

+604
-3
lines changed

15 files changed

+604
-3
lines changed

.openapi-generator/FILES

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ docs/FilterBy.md
3535
docs/FilterBy1.md
3636
docs/FilterBy2.md
3737
docs/Link.md
38+
docs/ListTagsResponse.md
39+
docs/ListTagsResponseData.md
3840
docs/LiveStream.md
3941
docs/LiveStreamAssets.md
4042
docs/LiveStreamCreationPayload.md
@@ -58,6 +60,7 @@ docs/Quality.md
5860
docs/RefreshTokenPayload.md
5961
docs/RestreamsRequestObject.md
6062
docs/RestreamsResponseObject.md
63+
docs/TagsApi.md
6164
docs/TokenCreationPayload.md
6265
docs/TokenListResponse.md
6366
docs/TooManyRequests.md
@@ -97,6 +100,7 @@ src/ApiVideo.Test/Api/CaptionsApiTests.cs
97100
src/ApiVideo.Test/Api/ChaptersApiTests.cs
98101
src/ApiVideo.Test/Api/LiveStreamsApiTests.cs
99102
src/ApiVideo.Test/Api/PlayerThemesApiTests.cs
103+
src/ApiVideo.Test/Api/TagsApiTests.cs
100104
src/ApiVideo.Test/Api/UploadTokensApiTests.cs
101105
src/ApiVideo.Test/Api/VideosApiTests.cs
102106
src/ApiVideo.Test/Api/WatermarksApiTests.cs
@@ -129,6 +133,8 @@ src/ApiVideo.Test/Model/FilterBy1Tests.cs
129133
src/ApiVideo.Test/Model/FilterBy2Tests.cs
130134
src/ApiVideo.Test/Model/FilterByTests.cs
131135
src/ApiVideo.Test/Model/LinkTests.cs
136+
src/ApiVideo.Test/Model/ListTagsResponseDataTests.cs
137+
src/ApiVideo.Test/Model/ListTagsResponseTests.cs
132138
src/ApiVideo.Test/Model/LiveStreamAssetsTests.cs
133139
src/ApiVideo.Test/Model/LiveStreamCreationPayloadTests.cs
134140
src/ApiVideo.Test/Model/LiveStreamListResponseTests.cs
@@ -182,6 +188,7 @@ src/ApiVideo/Api/CaptionsApi.cs
182188
src/ApiVideo/Api/ChaptersApi.cs
183189
src/ApiVideo/Api/LiveStreamsApi.cs
184190
src/ApiVideo/Api/PlayerThemesApi.cs
191+
src/ApiVideo/Api/TagsApi.cs
185192
src/ApiVideo/Api/UploadTokensApi.cs
186193
src/ApiVideo/Api/VideosApi.cs
187194
src/ApiVideo/Api/WatermarksApi.cs
@@ -224,6 +231,8 @@ src/ApiVideo/Model/FilterBy2.cs
224231
src/ApiVideo/Model/IUploadPartProgressListener.cs
225232
src/ApiVideo/Model/IUploadProgressListener.cs
226233
src/ApiVideo/Model/Link.cs
234+
src/ApiVideo/Model/ListTagsResponse.cs
235+
src/ApiVideo/Model/ListTagsResponseData.cs
227236
src/ApiVideo/Model/LiveStream.cs
228237
src/ApiVideo/Model/LiveStreamAssets.cs
229238
src/ApiVideo/Model/LiveStreamCreationPayload.cs
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
17ac0a7b292afb851962592fd7280e7727bb901d5d4e2a3f75808aa76a1ecdf5
1+
12ff3e795cfdbea56668a2b5cf4d322b72fb982514d7253ccc5b8ca4cd7ed04e

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Changelog
22
All changes to this project will be documented in this file.
33

4+
## [1.6.3] - 2024-09-30
5+
- Add /tags API endpoint
6+
47
## [1.6.2] - 2024-09-16
58
- Add discarded video endpoints
69

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
- [ChaptersApi](#chaptersapi)
2424
- [LiveStreamsApi](#livestreamsapi)
2525
- [PlayerThemesApi](#playerthemesapi)
26+
- [TagsApi](#tagsapi)
2627
- [UploadTokensApi](#uploadtokensapi)
2728
- [VideosApi](#videosapi)
2829
- [WatermarksApi](#watermarksapi)
@@ -258,6 +259,22 @@ Method | HTTP request | Description
258259
[**deleteLogo**](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/PlayerThemesApi.md#deleteLogo) | **DELETE** `/players/{playerId}/logo` | Delete logo
259260

260261

262+
#### TagsApi
263+
264+
265+
##### Retrieve an instance of TagsApi:
266+
```java
267+
ApiVideoClient apiVideoClient = new ApiVideoClient("YOUR_API_KEY");
268+
TagsApi tags = client.Tags()
269+
```
270+
271+
##### Endpoints
272+
273+
Method | HTTP request | Description
274+
------------- | ------------- | -------------
275+
[**list**](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/TagsApi.md#list) | **GET** `/tags` | List all video tags
276+
277+
261278
#### UploadTokensApi
262279

263280

@@ -372,6 +389,8 @@ Method | HTTP request | Description
372389
- [FilterBy1](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/FilterBy1.md)
373390
- [FilterBy2](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/FilterBy2.md)
374391
- [Link](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/Link.md)
392+
- [ListTagsResponse](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/ListTagsResponse.md)
393+
- [ListTagsResponseData](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/ListTagsResponseData.md)
375394
- [LiveStream](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/LiveStream.md)
376395
- [LiveStreamAssets](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/LiveStreamAssets.md)
377396
- [LiveStreamCreationPayload](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/LiveStreamCreationPayload.md)

docs/ListTagsResponse.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# ApiVideo.Model.ListTagsResponse
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**Data** | [**List<ListTagsResponseData>**](ListTagsResponseData.md) | | [optional]
8+
**Pagination** | [**Pagination**](Pagination.md) | | [optional]
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+

docs/ListTagsResponseData.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# ApiVideo.Model.ListTagsResponseData
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**Value** | **string** | Returns the value of a video tag used in your project. | [optional]
8+
**VideoCount** | **int** | Returns the number of times a video tag is used. | [optional]
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+

docs/TagsApi.md

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
# ApiVideo.Api.TagsApi
2+
3+
All URIs are relative to *https://ws.api.video*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**list**](TagsApi.md#listtags) | **GET** /tags | List all video tags
8+
9+
10+
<a name="listtags"></a>
11+
# **list**
12+
> ListTagsResponse list (string value = null, string sortBy = null, string sortOrder = null, int? currentPage = null, int? pageSize = null)
13+
14+
List all video tags
15+
16+
This endpoint enables you to search for video tags in a project and see how many videos are tagged with them. If you do not define any query parameters, the endpoint lists all video tags and the numbers of times they are used in a project.
17+
18+
### Example
19+
```csharp
20+
using System.Diagnostics;
21+
using ApiVideo.Client;
22+
23+
namespace Example
24+
{
25+
public class listExample
26+
{
27+
public static void Main()
28+
{
29+
var basePath = ApiVideoClient.Client.Environment.SANDBOX;
30+
var apiKey = "YOUR_API_KEY";
31+
32+
var apiInstance = new ApiVideoClient(apiKey,basePath);
33+
34+
var value = value_example; // string | Use this parameter to search for specific video tags. The API filters results even on partial values, and ignores accents, uppercase, and lowercase. (optional)
35+
var sortBy = value; // string | Use this parameter to choose which field the API will use to sort the response data. The default is `value`. These are the available fields to sort by: - `value`: Sorts the results based on tag values in alphabetic order. - `videoCount`: Sorts the results based on the number of times a video tag is used. (optional)
36+
var sortOrder = asc; // string | Use this parameter to sort results. `asc` is ascending and sorts from A to Z. `desc` is descending and sorts from Z to A. (optional)
37+
var currentPage = 2; // int? | Choose the number of search results to return per page. Minimum value: 1 (optional) (default to 1)
38+
var pageSize = 30; // int? | Results per page. Allowed values 1-100, default is 25. (optional) (default to 25)
39+
var apiTagsInstance = apiInstance.Tags();
40+
try
41+
{
42+
// List all video tags
43+
ListTagsResponse result = apiTagsInstance.list(value, sortBy, sortOrder, currentPage, pageSize);
44+
Debug.WriteLine(result);
45+
}
46+
catch (ApiException e)
47+
{
48+
Debug.Print("Exception when calling TagsApi.list: " + e.Message );
49+
Debug.Print("Status Code: "+ e.ErrorCode);
50+
Debug.Print(e.StackTrace);
51+
}
52+
}
53+
}
54+
}
55+
```
56+
57+
### Parameters
58+
59+
Name | Type | Description | Notes
60+
------------- | ------------- | ------------- | -------------
61+
**value** | **string**| Use this parameter to search for specific video tags. The API filters results even on partial values, and ignores accents, uppercase, and lowercase. | [optional]
62+
**sortBy** | **string**| Use this parameter to choose which field the API will use to sort the response data. The default is &#x60;value&#x60;. These are the available fields to sort by: - &#x60;value&#x60;: Sorts the results based on tag values in alphabetic order. - &#x60;videoCount&#x60;: Sorts the results based on the number of times a video tag is used. | [optional]
63+
**sortOrder** | **string**| Use this parameter to sort results. &#x60;asc&#x60; is ascending and sorts from A to Z. &#x60;desc&#x60; is descending and sorts from Z to A. | [optional]
64+
**currentPage** | **int?**| Choose the number of search results to return per page. Minimum value: 1 | [optional] [default to 1]
65+
**pageSize** | **int?**| Results per page. Allowed values 1-100, default is 25. | [optional] [default to 25]
66+
67+
### Return type
68+
69+
[**ListTagsResponse**](ListTagsResponse.md)
70+
71+
### HTTP request headers
72+
73+
- **Content-Type**: Not defined
74+
- **Accept**: application/json
75+
76+
77+
### HTTP response details
78+
| Status code | Description | Response headers |
79+
|-------------|-------------|------------------|
80+
| **200** | Success | * X-RateLimit-Limit - The request limit per minute. <br> * X-RateLimit-Remaining - The number of available requests left for the current time window. <br> * X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets. <br> |
81+
| **429** | Too Many Requests | * X-RateLimit-Limit - The request limit per minute. <br> * X-RateLimit-Remaining - The number of available requests left for the current time window. <br> * X-RateLimit-Retry-After - The number of seconds left until the current rate limit window resets. <br> |
82+
83+
[[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)
84+

0 commit comments

Comments
 (0)