-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #95 from apivideo/add-summary-feature-docs
Add summary feature
- Loading branch information
Showing
25 changed files
with
2,228 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,150 @@ | ||
# ApiVideo\Client\Api\SummariesApi | ||
|
||
All URIs are relative to https://ws.api.video. | ||
|
||
Method | Description | HTTP request | ||
------------- | ------------- | ------------- | ||
[**create()**](SummariesApi.md#create) | Generate video summary | **POST** /summaries | ||
[**update()**](SummariesApi.md#update) | Update summary details | **PATCH** /summaries/{summaryId}/source | ||
[**delete()**](SummariesApi.md#delete) | Delete video summary | **DELETE** /summaries/{summaryId} | ||
[**list()**](SummariesApi.md#list) | List summaries | **GET** /summaries | ||
[**getSummarySource()**](SummariesApi.md#getSummarySource) | Get summary details | **GET** /summaries/{summaryId}/source | ||
|
||
|
||
## **`create()` - Generate video summary** | ||
|
||
|
||
|
||
Generate a title, abstract, and key takeaways for a video. | ||
|
||
### Arguments | ||
|
||
|
||
|
||
Name | Type | Description | Notes | ||
------------- | ------------- | ------------- | ------------- | ||
`summaryCreationPayload` | [**\ApiVideo\Client\Model\SummaryCreationPayload**](../Model/SummaryCreationPayload.md)| | | ||
|
||
|
||
|
||
|
||
### Return type | ||
|
||
[**\ApiVideo\Client\Model\Summary**](../Model/Summary.md) | ||
|
||
|
||
|
||
|
||
|
||
## **`update()` - Update summary details** | ||
|
||
|
||
|
||
Update details for a summary. Note that this operation is only allowed for summary objects where `sourceStatus` is `missing`. | ||
|
||
### Arguments | ||
|
||
|
||
|
||
Name | Type | Description | Notes | ||
------------- | ------------- | ------------- | ------------- | ||
`summaryId` | **string**| The unique identifier of the summary source you want to update. | | ||
`summaryUpdatePayload` | [**\ApiVideo\Client\Model\SummaryUpdatePayload**](../Model/SummaryUpdatePayload.md)| | | ||
|
||
|
||
|
||
|
||
### Return type | ||
|
||
[**\ApiVideo\Client\Model\SummarySource**](../Model/SummarySource.md) | ||
|
||
|
||
|
||
|
||
|
||
## **`delete()` - Delete video summary** | ||
|
||
|
||
|
||
Delete a summary tied to a video. | ||
|
||
### Arguments | ||
|
||
|
||
|
||
Name | Type | Description | Notes | ||
------------- | ------------- | ------------- | ------------- | ||
`summaryId` | **string**| The unique identifier of the summary you want to delete. | | ||
|
||
|
||
|
||
|
||
### Return type | ||
|
||
void (empty response body) | ||
|
||
|
||
|
||
|
||
|
||
## **`list()` - List summaries** | ||
|
||
|
||
|
||
List all summarries for your videos in a project. | ||
|
||
### Arguments | ||
|
||
|
||
|
||
|
||
|
||
Note: `queryParams` argument is an associative array with the keys listed below. | ||
|
||
Name | Type | Description | Notes | ||
------------- | ------------- | ------------- | ------------- | ||
`videoId` | **string**| Use this parameter to filter for a summary that belongs to a specific video. | [optional] | ||
`origin` | **string**| Use this parameter to filter for summaries based on the way they were created: automatically or manually via the API. | [optional] | ||
`sourceStatus` | **string**| Use this parameter to filter for summaries based on the current status of the summary source. These are the available statuses: `missing`: the input for a summary is not present. `waiting` : the input video is being processed and a summary will be generated. `failed`: a technical issue prevented summary generation. `completed`: the summary is generated. `unprocessable`: the API rules the source video to be unsuitable for summary generation. An example for this is an input video that has no audio. | [optional] | ||
`sortBy` | **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: - `createdAt`: Sorts the results based on date and timestamps when summaries were created. - `updatedAt`: Sorts the results based on date and timestamps when summaries were last updated. - `videoId`: Sorts the results based on video IDs. | [optional] | ||
`sortOrder` | **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] | ||
`currentPage` | **int**| Choose the number of search results to return per page. Minimum value: 1 | [optional] [default to 1] | ||
`pageSize` | **int**| Results per page. Allowed values 1-100, default is 25. | [optional] [default to 25] | ||
|
||
|
||
|
||
|
||
|
||
|
||
### Return type | ||
|
||
[**\ApiVideo\Client\Model\SummariesListResponse**](../Model/SummariesListResponse.md) | ||
|
||
|
||
|
||
|
||
|
||
## **`getSummarySource()` - Get summary details** | ||
|
||
|
||
|
||
Get all details for a summary. | ||
|
||
### Arguments | ||
|
||
|
||
|
||
Name | Type | Description | Notes | ||
------------- | ------------- | ------------- | ------------- | ||
`summaryId` | **string**| The unique identifier of the summary source you want to retrieve. | | ||
|
||
|
||
|
||
|
||
### Return type | ||
|
||
[**\ApiVideo\Client\Model\SummarySource**](../Model/SummarySource.md) | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# # ConflictError | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**type** | **string** | A link to the error documentation. | [optional] | ||
**title** | **string** | A description of the error that occurred. | [optional] | ||
**name** | **string** | The name of the parameter that caused the error. | [optional] | ||
**status** | **int** | The HTTP status code. | [optional] | ||
**detail** | **string** | A solution for the error. | [optional] | ||
|
||
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# # SummariesListResponse | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**data** | [**\ApiVideo\Client\Model\Summary[]**](Summary.md) | An array of summary objects. | | ||
**pagination** | [**\ApiVideo\Client\Model\Pagination**](Pagination.md) | | | ||
|
||
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# # Summary | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**summaryId** | **string** | The unique identifier of the summary object. | [optional] | ||
**createdAt** | [**\DateTime**](\DateTime.md) | Returns the date and time when the summary was created in ATOM date-time format. | [optional] | ||
**updatedAt** | [**\DateTime**](\DateTime.md) | Returns the date and time when the summary was last updated in ATOM date-time format. | [optional] | ||
**videoId** | **string** | The unique identifier of the video object. | [optional] | ||
**origin** | **string** | Returns the origin of how the summary was created. - `api` means that no summary was generated automatically. You can add summary manually using the `PATCH /summaries/{summaryId}/source` endpoint operation. Until this happens, `sourceStatus` returns `missing`. - `auto` means that the API generated the summary automatically. | [optional] | ||
**sourceStatus** | **string** | Returns the current status of summary generation. `missing`: the input for a summary is not present. `waiting` : the input video is being processed and a summary will be generated. `failed`: a technical issue prevented summary generation. `completed`: the summary is generated. `unprocessable`: the API rules the source video to be unsuitable for summary generation. An example for this is an input video that has no audio. | [optional] | ||
|
||
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# # SummaryCreationPayload | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**videoId** | **string** | Create a summary of a video using the video ID. | | ||
**origin** | **string** | Use this parameter to define how the API generates the summary. The only allowed value is `auto`, which means that the API generates a summary automatically. If you do not set this parameter, **the API will not generate a summary automatically**. In this case, `sourceStatus` will return `missing`, and you have to manually add a summary using the `PATCH /summaries/{summaryId}/source` endpoint operation. | [optional] | ||
|
||
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# # SummarySource | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**title** | **string** | A video title, based on the contents of the video. | [optional] | ||
**abstract** | **string** | A short outline of the contents of the video. The length of an `abstract` depends on the amount of content in a video that can be transcribed. The API condenses the contents into minimum 20, maximum 300 words. | [optional] | ||
**takeaways** | **string[]** | A list of 3 key points from the video, in chronological order. | [optional] | ||
|
||
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# # SummaryUpdatePayload | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**title** | **string** | A video title, based on the contents of the video. | [optional] | ||
**abstract** | **string** | A short outline of the contents of the video. | [optional] | ||
**takeaways** | **string[]** | A list of 3 key points from the video, in chronological order. | [optional] | ||
|
||
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.