Changes by blabdude

Ajay Ramachandran
2021-06-16 14:38:08 -04:00
parent 5759a91f22
commit f16c35fe8a

@@ -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.