Skip to content

Commit

Permalink
Merge pull request #54 from apivideo/date-rage-required-in-analytics
Browse files Browse the repository at this point in the history
feat(all) Date range param is required in analytics endpoints
  • Loading branch information
bot-api-video authored Sep 14, 2022
2 parents 778a175 + 0dc2d43 commit 4a4d458
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 25 deletions.
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.2.6] - 2022-09-13
- period parameter is now mandatory in analytics endpoints

## [1.2.5] - 2022-07-05
- Add SDK origin header

Expand Down
10 changes: 6 additions & 4 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ paths:
schema:
$ref: '#/components/schemas/bad-request'
description: Bad Request
summary: Authenticate
summary: Advanced - Authenticate (1/2)
tags:
- Authentication
x-client-action: authenticate
Expand Down Expand Up @@ -125,7 +125,7 @@ paths:
schema:
$ref: '#/components/schemas/bad-request'
description: Bad Request
summary: Refresh token
summary: Advanced - Refresh token (2/2)
tags:
- Authentication
x-client-action: refresh
Expand Down Expand Up @@ -973,6 +973,7 @@ paths:
x-client-action: upload
x-client-chunk-upload: true
x-readme:
explorer-enabled: false
code-samples:
- language: go
code: "// First install the go client with \"go get github.com/apivideo/api.video-go-client\"\
Expand Down Expand Up @@ -1855,6 +1856,7 @@ paths:
Note: There may be a short delay before the new thumbnail is delivered to our CDN.
x-client-action: uploadThumbnail
x-readme:
explorer-enabled: false
code-samples:
- language: go
code: "// First install the go client with \"go get github.com/apivideo/api.video-go-client\"\
Expand Down Expand Up @@ -7811,7 +7813,7 @@ paths:
explode: true
in: query
name: period
required: false
required: true
schema:
format: period
type: string
Expand Down Expand Up @@ -8104,7 +8106,7 @@ paths:
explode: true
in: query
name: period
required: false
required: true
schema:
format: period
type: string
Expand Down
16 changes: 8 additions & 8 deletions api_authentication.go

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

8 changes: 2 additions & 6 deletions api_raw_statistics.go

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

1 change: 0 additions & 1 deletion 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.2.5")
req.Header.Set("AV-Origin-Client", "go:1.2.6")

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.2.5")
req.Header.Set("AV-Origin-Client", "go:1.2.6")

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

Expand Down
8 changes: 4 additions & 4 deletions docs/Authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ All URIs are relative to *https://ws.api.video*

Method | HTTP request | Description
------------- | ------------- | -------------
[**Authenticate**](Authentication.md#Authenticate) | **Post** /auth/api-key | Authenticate
[**Refresh**](Authentication.md#Refresh) | **Post** /auth/refresh | Refresh token
[**Authenticate**](Authentication.md#Authenticate) | **Post** /auth/api-key | Advanced - Authenticate (1/2)
[**Refresh**](Authentication.md#Refresh) | **Post** /auth/refresh | Advanced - Refresh token (2/2)



Expand All @@ -16,7 +16,7 @@ Method | HTTP request | Description
> AuthenticateWithContext(ctx context.Context, authenticatePayload AuthenticatePayload) (*AccessToken, error)

Authenticate
Advanced - Authenticate (1/2)



Expand Down Expand Up @@ -77,7 +77,7 @@ Name | Type | Description | Notes
> RefreshWithContext(ctx context.Context, refreshTokenPayload RefreshTokenPayload) (*AccessToken, error)

Refresh token
Advanced - Refresh token (2/2)



Expand Down

0 comments on commit 4a4d458

Please sign in to comment.