getListFolderAndFiles method

Future<Map> getListFolderAndFiles({
  1. String? folder_id,
  2. bool? only_folders,
  3. String? apiKey,
})

Implementation

Future<Map> getListFolderAndFiles({
  String? folder_id,
  bool? only_folders,
  String? apiKey,
}) async {
  Map result = await invoke(
    uriPath: "folder/list",
    uriQueryParameters: {
      "fld_id": folder_id,
      "only_folders": (only_folders == true) ? "1" : "0",
    },
    apiKey: apiKey,
    statusCodes: [200],
    specialTypeName: "uploadRemoteUrl",
  );

  return result;
}