🧪 Bac à sable API

Testez les endpoints de l'API Rediafile Cloud v2. Les réponses sont simulées — aucune credential réelle requise.

Import d'URL distante

Importez un fichier depuis une URL distante.

POST https://rediafile.com/cloud/api/v2/file/url_upload_add

Paramètres

Jeton d'auth.
Id de compte.
URL distante.

Réponse

Sélectionnez un endpoint et cliquez sur « Envoyer » pour voir une réponse simulée.
<?php
$ch = curl_init('https://rediafile.com/cloud/api/v2/file/url_upload_add');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([
    'access_token' => 'demo_token_abc123',
    'account_id' => 'acc_demo_001',
    'url' => 'https://example.com/bigfile.zip',
]));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$resp = curl_exec($ch);
curl_close($ch);
echo $resp;