🧪 Bac à sable API

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

Autorisation

Authentifiez-vous pour recevoir un jeton d'accès.

POST https://rediafile.com/cloud/api/v2/authorize

Paramètres

Votre nom d'utilisateur.
Votre mot de passe.

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/authorize');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([
    'username' => 'your_username',
    'password' => 'your_password',
]));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$resp = curl_exec($ch);
curl_close($ch);
echo $resp;