getListFiles method

Future<Map> getListFiles({
  1. int page = 0,
  2. int per_page = 200,
  3. String? folder_id,
  4. String? created,
  5. String? apiKey,
})

Implementation

Future<Map> getListFiles({
  int page = 0,
  int per_page = 200,
  String? folder_id,
  String? created,
  String? apiKey,
}) async {
  Map result = await invoke(
    uriPath: "file/list",
    uriQueryParameters: {
      "page": "${page}",
      "per_page": "${per_page}",
      "fld_id": folder_id,
      "created": created,
    },
    apiKey: apiKey,
    statusCodes: [200],
    specialTypeName: "uploadRemoteUrl",
  );

  return result;
}