43 lines
1.2 KiB
PHP
43 lines
1.2 KiB
PHP
<?php
|
|
/**
|
|
* Configuration settings for Zoho API connections
|
|
*/
|
|
|
|
return [
|
|
'zoho' => [
|
|
'accounts_domain' => 'https://accounts.zoho.com',
|
|
'api_domain' => 'https://www.zohoapis.com',
|
|
|
|
// OAuth2 credentials
|
|
'client_id' => getenv('ZOHO_CLIENT_ID') ?: '',
|
|
'client_secret' => getenv('ZOHO_CLIENT_SECRET') ?: '',
|
|
'redirect_uri' => getenv('ZOHO_REDIRECT_URI') ?: '',
|
|
|
|
// Token storage
|
|
'token_file' => __DIR__ . '/../storage/tokens.json',
|
|
|
|
// Services configuration
|
|
'projects' => [
|
|
'enabled' => true,
|
|
'api_base' => 'https://www.zohoapis.com/projects/api/v3',
|
|
'scopes' => 'ZohoProjects.projects.READ,ZohoProjects.tasks.READ',
|
|
],
|
|
|
|
'desk' => [
|
|
'enabled' => false,
|
|
'api_base' => 'https://desk.zoho.com/api/v1',
|
|
'scopes' => 'ZohoDesk.tickets.READ,ZohoDesk.organizations.READ',
|
|
],
|
|
],
|
|
|
|
// Export settings
|
|
'export' => [
|
|
'output_dir' => __DIR__ . '/../storage/exports',
|
|
'format' => 'json', // json, csv
|
|
],
|
|
|
|
// Logging
|
|
'log_file' => __DIR__ . '/../storage/logs/zoho_sync.log',
|
|
'log_level' => 'INFO',
|
|
];
|