pin method

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

POST /api/v1/accounts/:id/pin

  • authenticated
  • write write:accounts

Implementation

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

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