zcrmsdk/oauth/exception/ZohoOAuthException with message 'Refresh token is not provided.'

zcrmsdk/oauth/exception/ZohoOAuthException with message 'Refresh token is not provided.'

Hi Team,


In my $configuration array I have set:-
  1. $configuration['client_id'] = {client_id};
  2. $configuration['client_secret'] = {client_secret};
  3. $configuration['redirect_uri'] = {redirect_uri};
  4. $configuration['currentUserEmail'] = {currentUserEmail};
  5. $configuration['apiVersion'] = "v2";
  6. $configuration['sandbox'] = true;
  7. $configuration['applicationLogFilePath'] = {applicationLogFilePath};
  8. $configuration['db_port'] = {db_port};
  9. $configuration['db_username'] = {db_username};
  10. $configuration['db_password'] = {db_password};
  11. $configuration['token_persistence_path'] = ""; //had to set empty string due to SDK bug
The module I'm trying to access is "Leads" and the field I'm trying to get details from is "Lead_Status"

However an error is thrown when I read this line: '$response = $moduleIns->getFieldDetails("Lead_Status");'

The error is: 'zcrmsdk/oauth/exception/ZohoOAuthException with message 'Refresh token is not provided.''

There is no accompanying stack trace.

It's my understanding that the PHP SDK is supposed to handle token persistence. However is does not appear to be doing so.
To kick start the process I have manually inserted a manually generated access and refresh tocken into the database however this has had no affect. In fact I can't see the SDK attempting to access the database at all.

Is this a bug? How do I fix this? Why isn't there any documentation for the PHP SDK?

    Access your files securely from anywhere









                          Zoho Developer Community




                                                • Desk Community Learning Series


                                                • Digest


                                                • Functions


                                                • Meetups


                                                • Kbase


                                                • Resources


                                                • Glossary


                                                • Desk Marketplace


                                                • MVP Corner


                                                • Word of the Day


                                                • Ask the Experts





                                                          Manage your brands on social media



                                                                Zoho TeamInbox Resources



                                                                    Zoho CRM Plus Resources

                                                                      Zoho Books Resources


                                                                        Zoho Subscriptions Resources

                                                                          Zoho Projects Resources


                                                                            Zoho Sprints Resources


                                                                              Qntrl Resources


                                                                                Zoho Creator Resources



                                                                                    Zoho CRM Resources

                                                                                    • CRM Community Learning Series

                                                                                      CRM Community Learning Series


                                                                                    • Kaizen

                                                                                      Kaizen

                                                                                    • Functions

                                                                                      Functions

                                                                                    • Meetups

                                                                                      Meetups

                                                                                    • Kbase

                                                                                      Kbase

                                                                                    • Resources

                                                                                      Resources

                                                                                    • Digest

                                                                                      Digest

                                                                                    • CRM Marketplace

                                                                                      CRM Marketplace

                                                                                    • MVP Corner

                                                                                      MVP Corner







                                                                                        Design. Discuss. Deliver.

                                                                                        Create visually engaging stories with Zoho Show.

                                                                                        Get Started Now


                                                                                          Zoho Show Resources

                                                                                            Zoho Writer

                                                                                            Get Started. Write Away!

                                                                                            Writer is a powerful online word processor, designed for collaborative work.

                                                                                              Zoho CRM コンテンツ






                                                                                                Nederlandse Hulpbronnen


                                                                                                    ご検討中の方