getFilePreview method
Get a file's preview
Gets a file's preview. ##### 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> getFilePreview(
String fileId,
) async {
final response = await getFilePreviewWithHttpInfo(
fileId,
);
if (response.statusCode >= HttpStatus.badRequest) {
throw MmApiException(response.statusCode, await _decodeBodyBytes(response));
}
}