getFilePreviewWithHttpInfo method

Future<Response> getFilePreviewWithHttpInfo(
  1. String fileId
)

Get a file's preview

Gets a file's preview. ##### Permissions Must have read_channel permission or be uploader of the file.

Note: This method returns the HTTP Response.

Parameters:

  • String fileId (required): The ID of the file to get

Implementation

Future<Response> getFilePreviewWithHttpInfo(
  String fileId,
) async {
  // ignore: prefer_const_declarations
  final path = r'/files/{file_id}/preview'.replaceAll('{file_id}', fileId);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <MmQueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];

  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}