Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.rebellapp.com/llms.txt

Use this file to discover all available pages before exploring further.

Download a file and save it locally.

Parameters

PropertyTypeRequiredDescription
urlStringYesFile URL to download
headerObjectNoRequest headers
successFunctionNoCallback on success
failFunctionNoCallback on failure
completeFunctionNoCallback that always executes

Success Callback

PropertyTypeDescription
apFilePathStringLocal temporary file path

Code Example

my.downloadFile({
  url: 'https://example.com/file.pdf',
  success: (res) => {
    console.log('Downloaded to:', res.apFilePath);
  }
});