appBskyGraphGetRelationships function

Future<XRPCResponse<GraphGetRelationshipsOutput>> appBskyGraphGetRelationships({
  1. required String actor,
  2. List<String>? others,
  3. required ServiceContext $ctx,
  4. Map<String, String>? $headers,
  5. Map<String, String>? $unknown,
})

Enumerates public relationships between one account, and a list of other accounts. Does not require auth.

Implementation

Future<XRPCResponse<GraphGetRelationshipsOutput>> appBskyGraphGetRelationships({
  required String actor,
  List<String>? others,
  required ServiceContext $ctx,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.get(
  ns.appBskyGraphGetRelationships,
  headers: $headers,
  parameters: {
    ...?$unknown,
    'actor': actor,
    if (others != null) 'others': others,
  },
  to: const GraphGetRelationshipsOutputConverter().fromJson,
);