getEmbedExternalView method

Future<XRPCResponse<EmbedGetEmbedExternalViewOutput>> getEmbedExternalView({
  1. required String url,
  2. required List<AtUri> uris,
  3. String? $service,
  4. Map<String, String>? $headers,
  5. Map<String, String>? $unknown,
})

Resolve one or more AT-URIs into the data needed to render an enhanced external embed. Returns associatedRefs (strongRefs to embed into a post's external.associatedRefs), the raw associatedRecords, and a hydrated view. The response is empty ({}) when no records were resolvable, or when validation determined the resolved records don't actually back the requested URL; clients should fall back to their own link-card rendering in that case and skip writing strongRefs to the post.

Implementation

Future<XRPCResponse<EmbedGetEmbedExternalViewOutput>> getEmbedExternalView({
  required String url,
  required List<AtUri> uris,
  String? $service,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await appBskyEmbedGetEmbedExternalView(
  url: url,
  uris: uris,
  $ctx: ctx,
  $service: $service,
  $headers: $headers,
  $unknown: $unknown,
);