getFileInfo method

Future<Map> getFileInfo({
  1. required String file_code,
  2. String? apiKey,
})

Implementation

Future<Map> getFileInfo({
  required String file_code,
  String? apiKey,
}) async {
  Map result = await invoke(
    uriPath: "file/info",
    uriQueryParameters: {
      "file_code": DoodstreamUtils.parseToFileId(data: file_code),
    },
    apiKey: apiKey,
    statusCodes: [200],
    specialTypeName: "uploadRemoteUrl",
  );

  return result;
}