Create a video analysis
curl --request POST \
--url https://platform.lymo.jp/v1/videos/{id}/analyses \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.lymo.jp/v1/videos/{id}/analyses', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://platform.lymo.jp/v1/videos/{id}/analyses"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"data": {
"id": "<string>",
"status": "processing",
"video_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"result": {
"summary": "<string>",
"checklist_evaluation_id": "<string>",
"sales_event_count": 123
},
"error": {
"code": "<string>",
"message": "<string>"
},
"started_at": "2023-11-07T05:31:56Z",
"finished_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"meta": {
"request_id": "req_abc123"
}
}{
"error": {
"code": "not_found",
"message": "Video not found"
},
"meta": {
"request_id": "req_abc123"
}
}Create a video analysis
Enqueues an analysis workflow for the video. Returns the analysis resource with status “processing”. Poll GET /v1/videos//analyses/ for completion.
POST
/
v1
/
videos
/
{id}
/
analyses
Create a video analysis
curl --request POST \
--url https://platform.lymo.jp/v1/videos/{id}/analyses \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.lymo.jp/v1/videos/{id}/analyses', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://platform.lymo.jp/v1/videos/{id}/analyses"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"data": {
"id": "<string>",
"status": "processing",
"video_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"result": {
"summary": "<string>",
"checklist_evaluation_id": "<string>",
"sales_event_count": 123
},
"error": {
"code": "<string>",
"message": "<string>"
},
"started_at": "2023-11-07T05:31:56Z",
"finished_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
},
"meta": {
"request_id": "req_abc123"
}
}{
"error": {
"code": "not_found",
"message": "Video not found"
},
"meta": {
"request_id": "req_abc123"
}
}このページは役に立ちましたか?
