mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-13 15:06:59 +03:00
Update README.MD
This commit is contained in:
committed by
GitHub
parent
3a9971ce8b
commit
667b87cd92
32
README.MD
32
README.MD
@@ -63,7 +63,7 @@ __________________________________________________________________
|
|||||||
videoID: string,
|
videoID: string,
|
||||||
startTime: float,
|
startTime: float,
|
||||||
endTime: float,
|
endTime: float,
|
||||||
userID: string //This should be a randomly generated UUID
|
localUserID: string //This should be a randomly generated UUID
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -90,7 +90,7 @@ __________________________________________________________________
|
|||||||
```
|
```
|
||||||
{
|
{
|
||||||
UUID: string, //id of the sponsor being voted on
|
UUID: string, //id of the sponsor being voted on
|
||||||
userID: string,
|
userID: string, //the local user id
|
||||||
type: int //0 for downvote, 1 for upvote
|
type: int //0 for downvote, 1 for upvote
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@@ -137,7 +137,7 @@ __________________________________________________________________
|
|||||||
**Input**:
|
**Input**:
|
||||||
```
|
```
|
||||||
{
|
{
|
||||||
userID: string
|
userID: string //the local user id
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -154,12 +154,34 @@ __________________________________________________________________
|
|||||||
|
|
||||||
__________________________________________________________________
|
__________________________________________________________________
|
||||||
|
|
||||||
|
**GET** `/api/getSavedTimeForUser`
|
||||||
|
|
||||||
|
**Input**:
|
||||||
|
```
|
||||||
|
{
|
||||||
|
userID: string //the local user id
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
**Response**:
|
||||||
|
```
|
||||||
|
{
|
||||||
|
timeSaved: float //in minutes
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
**Error codes**:
|
||||||
|
|
||||||
|
404: Not Found
|
||||||
|
|
||||||
|
__________________________________________________________________
|
||||||
|
|
||||||
**POST** `/api/setUsername`
|
**POST** `/api/setUsername`
|
||||||
|
|
||||||
**Input**:
|
**Input**:
|
||||||
```
|
```
|
||||||
{
|
{
|
||||||
userID: string,
|
userID: string, //local user id normally, public user id if adminUserID is specified
|
||||||
userName: string,
|
userName: string,
|
||||||
//optional
|
//optional
|
||||||
adminUserID: string //This is if you want to change someone elses username from the admin account
|
adminUserID: string //This is if you want to change someone elses username from the admin account
|
||||||
@@ -184,7 +206,7 @@ __________________________________________________________________
|
|||||||
**Input**:
|
**Input**:
|
||||||
```
|
```
|
||||||
{
|
{
|
||||||
userID: string
|
userID: string //the local user id
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user