Add follow requests API
This commit is contained in:
parent
8774c7f9f2
commit
c9c516ee92
1 changed files with 38 additions and 2 deletions
|
@ -1,7 +1,43 @@
|
||||||
---
|
---
|
||||||
title: Follow requests API
|
title: Follow requests
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: api
|
parent: rest-api
|
||||||
weight: 10
|
weight: 10
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## GET /api/v1/follow_requests
|
||||||
|
|
||||||
|
Accounts that have requested to follow the user.
|
||||||
|
|
||||||
|
Returns array of [Account]({{< relref "entities.md#account" >}})
|
||||||
|
|
||||||
|
### Resource information
|
||||||
|
|
||||||
|
{{< api_method_info auth="Yes" user="Yes" scope="read read:follows follow" version="0.0.0" >}}
|
||||||
|
|
||||||
|
### Parameters
|
||||||
|
|
||||||
|
|Name|Description|Required|Default|
|
||||||
|
|----|-----------|:------:|:-----:|
|
||||||
|
| `limit` | Maximum number of results | Optional | 40 |
|
||||||
|
|
||||||
|
### Pagination
|
||||||
|
|
||||||
|
{{< api_pagination >}}
|
||||||
|
|
||||||
|
## POST /api/v1/follow_requests/:id/authorize
|
||||||
|
|
||||||
|
Allow the account to follow the user.
|
||||||
|
|
||||||
|
### Resource information
|
||||||
|
|
||||||
|
{{< api_method_info auth="Yes" user="Yes" scope="write:follows follow" version="0.0.0" >}}
|
||||||
|
|
||||||
|
## POST /api/v1/follow_requests/:id/reject
|
||||||
|
|
||||||
|
Do not allow the account to follow the user.
|
||||||
|
|
||||||
|
### Resource information
|
||||||
|
|
||||||
|
{{< api_method_info auth="Yes" user="Yes" scope="write:follows follow" version="0.0.0" >}}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue