getFilePublic method

Future<void> getFilePublic(
  1. String fileId,
  2. String h
)

Get a public file

Permissions No permissions required.

Parameters:

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

  • String h (required): File hash

Implementation

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