muteAccount method

Future<Relationship> muteAccount(
  1. String id
)
inherited

POST /api/v1/accounts/:id/mute

  • authentication (requires user)
  • write:mutes

Implementation

Future<Relationship> muteAccount(String id) async {
  final response = await request(
    Method.post,
    "/api/v1/accounts/$id/mute",
    authenticated: true,
  );

  return Relationship.fromJson(json.decode(response.body));
}