Skip to content
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

Add discarded videos feature #95

Merged
merged 1 commit into from
Sep 16, 2024
Merged
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
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Changelog
All changes to this project will be documented in this file.

## [1.4.2] - 2024-09-16
- Add discarded video endpoints

## [1.4.1] - 2024-09-05
- Add sort parameters in analytics endpoints

Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,10 @@ Method | HTTP request | Description
[**List**](https://github.com/apivideo/api.video-go-client/blob/main/docs/Videos.md#List) | **Get** `/videos` | List all video objects
[**UploadThumbnail**](https://github.com/apivideo/api.video-go-client/blob/main/docs/Videos.md#UploadThumbnail) | **Post** `/videos/{videoId}/thumbnail` | Upload a thumbnail
[**PickThumbnail**](https://github.com/apivideo/api.video-go-client/blob/main/docs/Videos.md#PickThumbnail) | **Patch** `/videos/{videoId}/thumbnail` | Set a thumbnail
[**GetDiscarded**](https://github.com/apivideo/api.video-go-client/blob/main/docs/Videos.md#GetDiscarded) | **Get** `/discarded/videos/{videoId}` | Retrieve a discarded video object
[**GetStatus**](https://github.com/apivideo/api.video-go-client/blob/main/docs/Videos.md#GetStatus) | **Get** `/videos/{videoId}/status` | Retrieve video status and details
[**ListDiscarded**](https://github.com/apivideo/api.video-go-client/blob/main/docs/Videos.md#ListDiscarded) | **Get** `/discarded/videos` | List all discarded video objects
[**UpdateDiscarded**](https://github.com/apivideo/api.video-go-client/blob/main/docs/Videos.md#UpdateDiscarded) | **Patch** `/discarded/videos/{videoId}` | Update a discarded video object


#### Watermarks
Expand Down Expand Up @@ -337,6 +340,7 @@ Method | HTTP request | Description
- [CaptionsUpdatePayload](https://github.com/apivideo/api.video-go-client/blob/main/docs/CaptionsUpdatePayload.md)
- [Chapter](https://github.com/apivideo/api.video-go-client/blob/main/docs/Chapter.md)
- [ChaptersListResponse](https://github.com/apivideo/api.video-go-client/blob/main/docs/ChaptersListResponse.md)
- [DiscardedVideoUpdatePayload](https://github.com/apivideo/api.video-go-client/blob/main/docs/DiscardedVideoUpdatePayload.md)
- [FilterBy](https://github.com/apivideo/api.video-go-client/blob/main/docs/FilterBy.md)
- [FilterBy1](https://github.com/apivideo/api.video-go-client/blob/main/docs/FilterBy1.md)
- [FilterBy2](https://github.com/apivideo/api.video-go-client/blob/main/docs/FilterBy2.md)
Expand Down
1,516 changes: 1,195 additions & 321 deletions api/openapi.yaml

Large diffs are not rendered by default.

283 changes: 281 additions & 2 deletions api_videos.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ func (c *Client) prepareRequest(
req.Header.Set("AV-Origin-Sdk", originSdkHeaderValue)
}

req.Header.Set("AV-Origin-Client", "go:1.4.1")
req.Header.Set("AV-Origin-Client", "go:1.4.2")

for headerName := range headerParams {
req.Header.Set(headerName, headerParams[headerName])
Expand Down Expand Up @@ -530,7 +530,7 @@ func (c *Client) auth(req *http.Request) (*http.Request, error) {
req.Header.Set("AV-Origin-Sdk", originSdkHeaderValue)
}

req.Header.Set("AV-Origin-Client", "go:1.4.1")
req.Header.Set("AV-Origin-Client", "go:1.4.2")

resp, err := c.httpClient.Do(req)

Expand Down
Loading
Loading