Skip to content

Commit 4a4d458

Browse files
Merge pull request #54 from apivideo/date-rage-required-in-analytics
feat(all) Date range param is required in analytics endpoints
2 parents 778a175 + 0dc2d43 commit 4a4d458

File tree

7 files changed

+25
-25
lines changed

7 files changed

+25
-25
lines changed

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.2.6] - 2022-09-13
5+
- period parameter is now mandatory in analytics endpoints
6+
47
## [1.2.5] - 2022-07-05
58
- Add SDK origin header
69

api/openapi.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ paths:
5050
schema:
5151
$ref: '#/components/schemas/bad-request'
5252
description: Bad Request
53-
summary: Authenticate
53+
summary: Advanced - Authenticate (1/2)
5454
tags:
5555
- Authentication
5656
x-client-action: authenticate
@@ -125,7 +125,7 @@ paths:
125125
schema:
126126
$ref: '#/components/schemas/bad-request'
127127
description: Bad Request
128-
summary: Refresh token
128+
summary: Advanced - Refresh token (2/2)
129129
tags:
130130
- Authentication
131131
x-client-action: refresh
@@ -973,6 +973,7 @@ paths:
973973
x-client-action: upload
974974
x-client-chunk-upload: true
975975
x-readme:
976+
explorer-enabled: false
976977
code-samples:
977978
- language: go
978979
code: "// First install the go client with \"go get github.com/apivideo/api.video-go-client\"\
@@ -1855,6 +1856,7 @@ paths:
18551856
Note: There may be a short delay before the new thumbnail is delivered to our CDN.
18561857
x-client-action: uploadThumbnail
18571858
x-readme:
1859+
explorer-enabled: false
18581860
code-samples:
18591861
- language: go
18601862
code: "// First install the go client with \"go get github.com/apivideo/api.video-go-client\"\
@@ -7811,7 +7813,7 @@ paths:
78117813
explode: true
78127814
in: query
78137815
name: period
7814-
required: false
7816+
required: true
78157817
schema:
78167818
format: period
78177819
type: string
@@ -8104,7 +8106,7 @@ paths:
81048106
explode: true
81058107
in: query
81068108
name: period
8107-
required: false
8109+
required: true
81088110
schema:
81098111
format: period
81108112
type: string

api_authentication.go

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api_raw_statistics.go

Lines changed: 2 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api_videos.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ func (c *Client) prepareRequest(
255255
req.Header.Set("AV-Origin-Sdk", originSdkHeaderValue)
256256
}
257257

258-
req.Header.Set("AV-Origin-Client", "go:1.2.5")
258+
req.Header.Set("AV-Origin-Client", "go:1.2.6")
259259

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

533-
req.Header.Set("AV-Origin-Client", "go:1.2.5")
533+
req.Header.Set("AV-Origin-Client", "go:1.2.6")
534534

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

docs/Authentication.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ All URIs are relative to *https://ws.api.video*
44

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

1010

1111

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

19-
Authenticate
19+
Advanced - Authenticate (1/2)
2020

2121

2222

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

80-
Refresh token
80+
Advanced - Refresh token (2/2)
8181

8282

8383

0 commit comments

Comments
 (0)