followRequests method
GET /api/v1/follow_requests
- authenticated (requires user)
- read read:follows
Implementation
Future<List<Account>> followRequests({int limit = 40}) async {
final response = await request(
Method.get,
"/api/v1/follow_requests",
authenticated: true,
payload: {
"limit": limit.toString(),
},
);
final body = List<Map<String, dynamic>>.from(json.decode(response.body));
/// TODO: implement link headers for pagination
return body.map((m) => Account.fromJson(m)).toList();
}