mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-17 03:44:25 +03:00
Add user info endpoint
35
API-Docs.md
35
API-Docs.md
@@ -191,6 +191,41 @@ __________________________________________________________________
|
|||||||
|
|
||||||
__________________________________________________________________
|
__________________________________________________________________
|
||||||
|
|
||||||
|
##### **GET** `/api/userInfo`
|
||||||
|
|
||||||
|
**Input**:
|
||||||
|
```js
|
||||||
|
{
|
||||||
|
userID: string //the local user id
|
||||||
|
}
|
||||||
|
```
|
||||||
|
**OR**
|
||||||
|
```js
|
||||||
|
{
|
||||||
|
publicUserID: string
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
**Response**:
|
||||||
|
```js
|
||||||
|
{
|
||||||
|
userID: string, // the public user ID
|
||||||
|
userName: string,
|
||||||
|
minutesSaved: float,
|
||||||
|
segmentCount: int,
|
||||||
|
viewCount: int,
|
||||||
|
warnings: int,
|
||||||
|
reputation: float,
|
||||||
|
vip: boolean,
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
**Error codes**:
|
||||||
|
|
||||||
|
400: Bad inputs
|
||||||
|
|
||||||
|
__________________________________________________________________
|
||||||
|
|
||||||
##### **GET** `/api/getViewsForUser`
|
##### **GET** `/api/getViewsForUser`
|
||||||
|
|
||||||
**Input**:
|
**Input**:
|
||||||
|
|||||||
Reference in New Issue
Block a user