lookupOEmbedMetadata abstract method

Future<MastodonResponse<OEmbedMetadata>> lookupOEmbedMetadata({
  1. required String statusUrl,
  2. int? maxWidth,
  3. int? maxHeight,
})

Get OEmbed info.

Parameters

  • statusUrl: URL of a status.

  • maxWidth: Width of the iframe. Defaults to 400

  • maxHeight: Height of the iframe. Defaults to null.

Endpoint Url

  • GET /api/oembed HTTP/1.1

Reference

Implementation

Future<MastodonResponse<OEmbedMetadata>> lookupOEmbedMetadata({
  required String statusUrl,
  int? maxWidth,
  int? maxHeight,
});