From f16c35fe8af9196d9e9fbb348f07fa5377269e5c Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Wed, 16 Jun 2021 14:38:08 -0400 Subject: [PATCH] Changes by blabdude --- API-Docs.md | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/API-Docs.md b/API-Docs.md index aa84c84..f26681d 100644 --- a/API-Docs.md +++ b/API-Docs.md @@ -213,10 +213,13 @@ __________________________________________________________________ userName: string, minutesSaved: float, segmentCount: int, + ignoredSegmentCount: int, viewCount: int, + ignoredViewCount: int, warnings: int, reputation: float, vip: boolean, + lastSegmentID: string } ``` @@ -391,6 +394,45 @@ __________________________________________________________________ None __________________________________________________________________ +##### **GET** `/api/segmentInfo` + +**Input**: +```js +{ + UUID: string, // Can be used instead of UUIDs + UUIDs: string[] // Can be used instead of UUID. Maximum 10 entries. Will look like ["a...0", "b...1"] +} +``` + +**Response**: +```js +[{ // Array of this object + videoID: string, + startTime: float, + endTime: fload, + votes: int, + locked: int, + UUID: string, + userID: string, + timeSubmitted: int, + views: int, + category: string, + service: string, + videoDuration: int, + hidden: int, + reputation: int, + shadowHidden: int +}] +``` + +**Error codes**: + +400: Bad Request (Your inputs are wrong/impossible) + +404: Not Found + +__________________________________________________________________ + ### VIP Calls These can only be called by the users added to the VIP table.