Caja de arena
Explore every endpoint with simulated responses — no credentials required.
POST
/authorize
Autorizar
Obtener un token de acceso Bearer con las credenciales de la cuenta o las claves API.
Click "Send request" to see a simulated response.
Ejemplos de código
<?php
$ch = curl_init('https://rediafile.com/cloud/api/v2/authorize');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: Bearer ' . $token]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
'username' => 'admin',
'password' => 'secret123',
'api_key' => 'pk_live_xxxxxxxx',
'api_secret' => 'sk_live_xxxxxxxx',
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
$data = json_decode($response, true);