getFile method

Future<void> getFile(
  1. String fileId
)

Get a file

Gets a file that has been uploaded previously. ##### Permissions Must have read_channel permission or be uploader of the file.

Parameters:

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

Implementation

Future<void> getFile(
  String fileId,
) async {
  final response = await getFileWithHttpInfo(
    fileId,
  );
  if (response.statusCode >= HttpStatus.badRequest) {
    throw MmApiException(response.statusCode, await _decodeBodyBytes(response));
  }
}