unfollow method

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

Unfollow the given account.

POST /api/v1/accounts/:id/unfollow

  • authenticated
  • write:follows

Implementation

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

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