const params = new URLSearchParams();
const data = new FormData();
data.append('access_token', 'demo_token_abc123');
data.append('file_id', '10245');
const resp = await fetch('https://rediafile.com/cloud/api/v2/file/download', {
method: 'GET',
body: data
});
const json = await resp.json();
console.log(json);