td-wp-plugin / td-zoho-crm-sdk-wrapper
Helps with initializing the Zoho CRM PHP SDK in WordPress via WP CLI.
Installs: 256
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:wordpress-muplugin
Requires
- zohocrm/php-sdk: ^2.0.7
This package is auto-updated.
Last update: 2025-03-23 04:51:44 UTC
README
A simple WordPress plugin integrating the Zoho CRM PHP SDK with WordPress.
Capabilities
This plugin integrates with WP-CLI in order to easily setup tokens necessary for authenticating to the Zoho API by means of the Zoho CRM PHP SDK.
It will also handle initialization of the Zoho CRM SDK upon the WordPress init
hook.
Prerequisites
This plugin is developed with a WordPress Bedrock installation into mind. The Zoho CRM tokens will be stored in the /config directory. Configuration is done by means of environment variables.
Configuration
The following environment variables are required:
ZOHO_CLIENT_ID
ZOHO_CLIENT_SECRET
ZOHO_CURRENT_USER_EMAIL
ZOHO_REDIRECT_URI
The following environment variables are optional:
ZOHO_ACCOUNTS_URL
defaults tohttps://accounts.zoho.com
ZOHO_API_BASE_URL
defaults towww.zohoapis.com
ZOHO_SANDBOX
defaults tofalse
ZOHO_CONFIG_PATH
defaults to Bedrock's/config
directory
Initialization: the Self-Client Method
For more information on the Zoho CRM PHP SDK initialization please check out its documentation at https://www.zoho.com/crm/developer/docs/php-sdk/initialize.html.
In order to be able to use the Zoho CRM SDK in WordPress you need to register a set of OAuth tokens by means of the
built-in WP-CLI command. The %grant-token%
should be replaced by the temporary token you receive from the Zoho
Developer Console.
wp zoho grant-token %grant-token%