╔══════════════════════════════════════════════════════════════╗ ║ Script : Setup Authentification Beds24 ║ ║ Version : 1.0.0 ║ ╚══════════════════════════════════════════════════════════════╝ Usage: php setup_beds24_auth.php Arguments: client_name Nom du client utilisant Beds24 (ex: cosyhosting) Prérequis: 1. Token d'invitation Beds24 collé dans: .temp/credentials/beds24_invitation_token.txt 2. Fonctions API Beds24 disponibles: code/apis/beds24_functions.php Ce script va: 1. Lire le token d'invitation temporaire 2. Appeler GET /authentication/setup (Beds24) 3. Récupérer access_token + refresh_token 4. Stocker refresh_token en cache (30 jours) 5. Stocker access_token en cache (24h) 6. Tester un appel API avec le token obtenu Exemples: php setup_beds24_auth.php cosyhosting