<?php
/**
 * Google Sheets Configuration Template
 * 
 * Copy this file to google-sheets-config.php and fill in your credentials
 * DO NOT commit the actual config file to version control
 */

if (!defined('ABSPATH')) {
    exit;
}

// Google OAuth 2.0 Credentials
// Get these from: https://console.cloud.google.com/apis/credentials
define('GOOGLE_SHEETS_CLIENT_ID', 'your-client-id-here.apps.googleusercontent.com');
define('GOOGLE_SHEETS_CLIENT_SECRET', 'your-client-secret-here');

// OAuth Redirect URI (must match what's configured in Google Console)
// For development: http://localhost:8080/callback
// For production: https://your-domain.com/oauth/google/callback
// Auto-detect based on current site URL
$site_url = function_exists('get_site_url') ? get_site_url() : 'https://upskillhvac.com';
define('GOOGLE_SHEETS_REDIRECT_URI', rtrim($site_url, '/') . '/oauth/google/callback');

// Refresh Token (obtained after initial OAuth flow)
// Leave empty initially - will be set after first authorization
define('GOOGLE_SHEETS_REFRESH_TOKEN', '');

// Google Drive Folder ID (optional)
// Create a folder in Google Drive and copy the ID from the URL
// Example: https://drive.google.com/drive/folders/1ABCDefGHIjkLMnoPQRstUVwxyz
// The folder ID would be: 1ABCDefGHIjkLMnoPQRstUVwxyz
define('GOOGLE_SHEETS_FOLDER_ID', '');

/*
 * Setup Instructions:
 * 
 * 1. Go to https://console.cloud.google.com/
 * 2. Create a new project or select existing one
 * 3. Enable Google Sheets API and Google Drive API
 * 4. Go to Credentials > Create Credentials > OAuth 2.0 Client IDs
 * 5. Set up the consent screen if required
 * 6. Add authorized redirect URIs
 * 7. Copy the Client ID and Client Secret above
 * 8. Save this file as google-sheets-config.php
 * 9. Use the Google Sheets admin page to authorize access
 */