mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-14 23:47:04 +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`
|
||||
|
||||
**Input**:
|
||||
|
||||
Reference in New Issue
Block a user