uploadFileFromRemote method

Future<Map> uploadFileFromRemote({
  1. required String url,
  2. String? folder_id,
  3. String? new_title,
  4. String? apiKey,
})

Upload files using direct links

DOCS: https://doodstream.com/api-docs#files-copy

Implementation

Future<Map> uploadFileFromRemote({
  required String url,
  String? folder_id,
  String? new_title,
  String? apiKey,
}) async {
  Map result = await invoke(
    uriPath: "upload/url",
    apiKey: apiKey,
    uriQueryParameters: {
      "url": url,
      "fld_id": folder_id,
      "new_title": new_title,
    },
    statusCodes: [200],
    specialTypeName: "uploadRemoteUrl",
  );

  return result;
}