PHP SDK: currentUserEmail is not getting saved. There is no useridentifier in oauthtokens record

PHP SDK: currentUserEmail is not getting saved. There is no useridentifier in oauthtokens record

I have the PHP SDK set up and working... mostly. I've found the problem shows itself in the SDK when the response comes back from the generateAccessToken() method. The ZohoOAuthTokens instance does not have a userEmailId value. Also, when the SDK saves the tokens to the oauthtokens table, the useridentifier field is empty (but all the other values are there). I have traced the empty email field to the API response from the getUserEmailIdFromIAM() method in the ZohoOAuthClient class (In my files it's on line 157 of ZohoOAuthClient.php), which gets called in the generateAccessToken() method. getUserEmailIdFromIAM() makes a request to get user info and for some reason comes back with an error that ultimately gets 'translated' into null as the JSON response is processed. My question is, why is it happening and how do I fix this? This seems to be the last step in the process for getting our app configured. Thanks

    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


                                                                                                    ご検討中の方