From f39958dd1d8202765659ad1cf4b7151e3118e631 Mon Sep 17 00:00:00 2001 From: aemaddin Date: Fri, 16 Dec 2022 13:19:37 +0200 Subject: [PATCH] - Added new static method to enforce package to use specific environment on booting. - Added all environments on config file. --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 978ef24..9d3f5b2 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,9 @@ ZOHO_CLIENT_SECRET="Code from Client Secrit Section" ZOHO_REDIRECT_URI=https://APP_URL/zoho/oauth2callback ZOHO_CURRENT_USER_EMAIL=admin@example.com ZOHO_TOKEN="Code Generated from last step" + +# available datacenters (USDataCenter, EUDataCenter, INDataCenter, CNDataCenter, AUDataCenter) +ZOHO_DATACENTER=USDataCenter ZOHO_SANDBOX=true ``` @@ -58,6 +61,16 @@ php artisan vendor:publish --tag="zoho-v3-migrations" php artisan migrate ``` +### Environments +maybe in some cases you wish to enforce zoho to use one of zoho's environments, so you can go to `AppServiceProvider` +and use `Zoho::useEnvironment()` method + +```php +Zoho::useEnvironment(EUDataCenter::DEVELOPER()); +``` + +So that will override config settings. + ## Usage Imagine that you need to get all modules from Zoho system.