getFileThumbnail method

Future<Map> getFileThumbnail({
  1. required String file_code,
  2. String? apiKey,
})

Get file splash, single or thumbnail image

DOCS: https://doodstream.com/api-docs#files-copy

Implementation

Future<Map> getFileThumbnail({
  required String file_code,
  String? apiKey,
}) async {
  Map result = await invoke(
    uriPath: "file/image",
    uriQueryParameters: {
      "file_code": DoodstreamUtils.parseToFileId(data: file_code),
    },
    apiKey: apiKey,
    statusCodes: [200],
    specialTypeName: "uploadRemoteUrl",
  );

  return result;
}