getFilePublicWithHttpInfo method

Future<Response> getFilePublicWithHttpInfo(
  1. String fileId,
  2. String h
)

Get a public file

Permissions No permissions required.

Note: This method returns the HTTP Response.

Parameters:

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

  • String h (required): File hash

Implementation

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

  // ignore: prefer_final_locals
  Object? postBody;

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

  queryParams.addAll(_queryParams('', 'h', h));

  const contentTypes = <String>[];

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