Skip to content

Commit

Permalink
Merge pull request #110 from apivideo/Update-get-live-streams-sortby-…
Browse files Browse the repository at this point in the history
…attribute

Update get live streams sortby attribute
  • Loading branch information
bot-api-video authored Dec 20, 2023
2 parents 46e3cf9 + 941fbc4 commit f58fba7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 11 deletions.
16 changes: 11 additions & 5 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3478,17 +3478,23 @@ paths:
schema:
type: string
style: form
- description: 'Allowed: createdAt, publishedAt, name. createdAt - the time
a livestream was created using the specified streamKey. publishedAt - the
time a livestream was published using the specified streamKey. name - the
name of the livestream. If you choose one of the time based options, the
time is presented in ISO-8601 format.'
- description: |
Enables you to sort live stream results. Allowed attributes: `name`, `createdAt`, `updatedAt`.
`name` - the name of the live stream.
`createdAt` - the time a live stream was created.
`updatedAt` - the time a live stream was last updated.

When using `createdAt` or `updatedAt`, the API sorts the results based on the ISO-8601 time format.
example: createdAt
explode: true
in: query
name: sortBy
required: false
schema:
enum:
- name
- createdAt
- updatedAt
type: string
style: form
- description: 'Allowed: asc, desc. Ascending for date and time means that earlier
Expand Down
4 changes: 2 additions & 2 deletions docs/LiveStreamsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ public class Example {

String streamKey = "dw-dew8-q6w9-k67w-1ws8"; // The unique stream key that allows you to stream videos.
String name = "My Video"; // You can filter live streams by their name or a part of their name.
String sortBy = "createdAt"; // Allowed: createdAt, publishedAt, name. createdAt - the time a livestream was created using the specified streamKey. publishedAt - the time a livestream was published using the specified streamKey. name - the name of the livestream. If you choose one of the time based options, the time is presented in ISO-8601 format.
String sortBy = "name"; // Enables you to sort live stream results. Allowed attributes: `name`, `createdAt`, `updatedAt`. `name` - the name of the live stream. `createdAt` - the time a live stream was created. `updatedAt` - the time a live stream was last updated. When using `createdAt` or `updatedAt`, the API sorts the results based on the ISO-8601 time format.
String sortOrder = "asc"; // Allowed: asc, desc. Ascending for date and time means that earlier values precede later ones. Descending means that later values preced earlier ones. For title, it is 0-9 and A-Z ascending and Z-A, 9-0 descending.
Integer currentPage = 1; // Choose the number of search results to return per page. Minimum value: 1
Integer pageSize = 25; // Results per page. Allowed values 1-100, default is 25.
Expand Down Expand Up @@ -349,7 +349,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**streamKey** | **String**| The unique stream key that allows you to stream videos. | [optional]
**name** | **String**| You can filter live streams by their name or a part of their name. | [optional]
**sortBy** | **String**| Allowed: createdAt, publishedAt, name. createdAt - the time a livestream was created using the specified streamKey. publishedAt - the time a livestream was published using the specified streamKey. name - the name of the livestream. If you choose one of the time based options, the time is presented in ISO-8601 format. | [optional]
**sortBy** | **String**| Enables you to sort live stream results. Allowed attributes: `name`, `createdAt`, `updatedAt`. `name` - the name of the live stream. `createdAt` - the time a live stream was created. `updatedAt` - the time a live stream was last updated. When using `createdAt` or `updatedAt`, the API sorts the results based on the ISO-8601 time format. | [optional] [enum: name, createdAt, updatedAt]
**sortOrder** | **String**| Allowed: asc, desc. Ascending for date and time means that earlier values precede later ones. Descending means that later values preced earlier ones. For title, it is 0-9 and A-Z ascending and Z-A, 9-0 descending. | [optional] [enum: asc, desc]
**currentPage** | **Integer**| Choose the number of search results to return per page. Minimum value: 1 | [optional] [default to 1]
**pageSize** | **Integer**| Results per page. Allowed values 1-100, default is 25. | [optional] [default to 25]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -960,10 +960,11 @@ public APIlistRequest name(String name) {
* Set sortBy
*
* @param sortBy
* Allowed: createdAt, publishedAt, name. createdAt - the time a livestream was created using the
* specified streamKey. publishedAt - the time a livestream was published using the specified
* streamKey. name - the name of the livestream. If you choose one of the time based options, the
* time is presented in ISO-8601 format. (optional)
* Enables you to sort live stream results. Allowed attributes: `name`,
* `createdAt`, `updatedAt`. `name` - the name of the live stream.
* `createdAt` - the time a live stream was created. `updatedAt` - the time a
* live stream was last updated. When using `createdAt` or `updatedAt`, the API
* sorts the results based on the ISO-8601 time format. (optional)
*
* @return APIlistRequest
*/
Expand Down

0 comments on commit f58fba7

Please sign in to comment.