appBskyContactImportContacts function

Future<XRPCResponse<ContactImportContactsOutput>> appBskyContactImportContacts({
  1. required String token,
  2. required List<String> contacts,
  3. required ServiceContext $ctx,
  4. String? $service,
  5. Map<String, String>? $headers,
  6. Map<String, String>? $unknown,
})

Import contacts for securely matching with other users. This follows the protocol explained in https://docs.bsky.app/blog/contact-import-rfc. Requires authentication.

Implementation

Future<XRPCResponse<ContactImportContactsOutput>> appBskyContactImportContacts({
  required String token,
  required List<String> contacts,
  required ServiceContext $ctx,
  String? $service,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.post(
  ns.appBskyContactImportContacts,
  service: $service,
  headers: {'Content-type': 'application/json', ...?$headers},
  body: {...?$unknown, 'token': token, 'contacts': contacts},
  to: const ContactImportContactsOutputConverter().fromJson,
);