The ZohoCRMOAuthToken Object
When you create or refresh an oauth_token, the ZohoCRMRestClient will return a ZohoCRMOAuthToken instance.
The ZohoCRMOAuthToken contains:
- an
.access_token, which is used to authorize API access .is_expired(), which returnsTrueif the access token is expired
If the ZohoCRMOAuthToken was created with the zoho_client.generate_access_token method, it will also contain:
.refresh_token, which must be used for all future token refresh requests using thezoho_client.generate_refresh_token()method.