appBskyContactImportContacts function
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,
);