Google Calendar
Connectez un compte Google pour synchroniser automatiquement les rendez-vous atelier et les réservations de location avec Google Calendar.
Configuration OAuth manquante.
Ajoutez les identifiants Google OAuth dans
Ajoutez les identifiants Google OAuth dans
config/app_local.php sous la clé
GoogleCalendar :
'GoogleCalendar' => [
'client_id' => env('GOOGLE_CLIENT_ID', ''),
'client_secret' => env('GOOGLE_CLIENT_SECRET', ''),
'redirect_uri' => 'https://ns31211311.ip-51-178-76.eu/reglages/google-calendar/callback',
],
Créez ces identifiants sur Google Cloud Console
(type "Application web"), avec l'URL de redirection ci-dessus et l'API Google Calendar activée.
Comment configurer Google Cloud ?
- Aller sur console.cloud.google.com et créer un projet (ex. « apigestion »).
- Activer l'API Google Calendar API dans « APIs et services → Bibliothèque ».
- « APIs et services → Écran de consentement OAuth » → External + ajouter scopes
../auth/calendaret../auth/calendar.events. - « APIs et services → Identifiants » → Créer « OAuth client ID » → type « Application Web ».
- URI de redirection autorisé :
https://ns31211311.ip-51-178-76.eu/reglages/google-calendar/callback - Copier Client ID + Client Secret dans
config/app_local.php(cléGoogleCalendar). - Revenir ici et cliquer « Connecter un compte Google ».