mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-08 12:37:00 +03:00
Update README.MD
This commit is contained in:
committed by
GitHub
parent
0072cdb17b
commit
3091d86186
83
README.MD
83
README.MD
@@ -22,7 +22,7 @@ Public API available at https://sponsor.ajay.app.
|
|||||||
|
|
||||||
________________________________________________________________________________
|
________________________________________________________________________________
|
||||||
|
|
||||||
`/api/getVideoSponsorTimes`
|
**GET** `/api/getVideoSponsorTimes`
|
||||||
|
|
||||||
**Input**:
|
**Input**:
|
||||||
```
|
```
|
||||||
@@ -45,7 +45,7 @@ ________________________________________________________________________________
|
|||||||
|
|
||||||
__________________________________________________________________
|
__________________________________________________________________
|
||||||
|
|
||||||
`/api/postVideoSponsorTimes`
|
**GET** `/api/postVideoSponsorTimes`
|
||||||
|
|
||||||
**Input**:
|
**Input**:
|
||||||
```
|
```
|
||||||
@@ -74,7 +74,7 @@ __________________________________________________________________
|
|||||||
|
|
||||||
__________________________________________________________________
|
__________________________________________________________________
|
||||||
|
|
||||||
`/api/voteOnSponsorTime`
|
**GET** `/api/voteOnSponsorTime`
|
||||||
|
|
||||||
**Input**:
|
**Input**:
|
||||||
```
|
```
|
||||||
@@ -100,7 +100,7 @@ __________________________________________________________________
|
|||||||
|
|
||||||
__________________________________________________________________
|
__________________________________________________________________
|
||||||
|
|
||||||
`/api/viewedVideoSponsorTime`
|
**GET** `/api/viewedVideoSponsorTime`
|
||||||
|
|
||||||
**Input**:
|
**Input**:
|
||||||
```
|
```
|
||||||
@@ -122,7 +122,7 @@ __________________________________________________________________
|
|||||||
|
|
||||||
__________________________________________________________________
|
__________________________________________________________________
|
||||||
|
|
||||||
`/api/getViewsForUser`
|
**GET** `/api/getViewsForUser`
|
||||||
|
|
||||||
**Input**:
|
**Input**:
|
||||||
```
|
```
|
||||||
@@ -144,9 +144,78 @@ __________________________________________________________________
|
|||||||
|
|
||||||
__________________________________________________________________
|
__________________________________________________________________
|
||||||
|
|
||||||
|
**GET** `/api/viewedVideoSponsorTime`
|
||||||
|
|
||||||
|
Indicates that the user has skipped this sponsor. Used for stats purposes.
|
||||||
|
|
||||||
|
**Input**:
|
||||||
|
```
|
||||||
|
{
|
||||||
|
UUID: string //the UUID of the sponsor time
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
**Response**:
|
||||||
|
```
|
||||||
|
{
|
||||||
|
Nothing
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
**Error codes**:
|
||||||
|
|
||||||
|
400: Bad Request (Your inputs are wrong/impossible)
|
||||||
|
|
||||||
|
__________________________________________________________________
|
||||||
|
|
||||||
|
**POST** `/api/setUsername`
|
||||||
|
|
||||||
|
**Input**:
|
||||||
|
```
|
||||||
|
{
|
||||||
|
userID: string,
|
||||||
|
userName: string
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
**Response**:
|
||||||
|
```
|
||||||
|
{
|
||||||
|
Nothing
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
**Error codes**:
|
||||||
|
|
||||||
|
400: Bad Request (Your inputs are wrong/impossible)
|
||||||
|
|
||||||
|
__________________________________________________________________
|
||||||
|
|
||||||
|
**POST** `/api/getUsername`
|
||||||
|
|
||||||
|
**Input**:
|
||||||
|
```
|
||||||
|
{
|
||||||
|
userID: string
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
**Response**:
|
||||||
|
```
|
||||||
|
{
|
||||||
|
userName: string //will send back hashed userID if no username has been set
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
**Error codes**:
|
||||||
|
|
||||||
|
400: Bad Request (Your inputs are wrong/impossible)
|
||||||
|
|
||||||
|
__________________________________________________________________
|
||||||
|
|
||||||
### Stats Calls
|
### Stats Calls
|
||||||
|
|
||||||
`/api/getTopUsers`
|
**GET** `/api/getTopUsers`
|
||||||
|
|
||||||
**Input**:
|
**Input**:
|
||||||
```
|
```
|
||||||
@@ -171,7 +240,7 @@ __________________________________________________________________
|
|||||||
|
|
||||||
__________________________________________________________________
|
__________________________________________________________________
|
||||||
|
|
||||||
`/api/getTotalStats`
|
**GET** `/api/getTotalStats`
|
||||||
|
|
||||||
**Input**:
|
**Input**:
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user