Creatng/Updating a Table via API using a JSON (PHP)

Creatng/Updating a Table via API using a JSON (PHP)

Hello!

So I've been attempting to import/update data into Analytics in PHP via its API, but I haven't been able to make the functions from the Library file (ReportClient.php) provided by the documentation (https://www.zoho.com/analytics/api/#php-library) work.

For example, when trying to use the createTable() method, it says it needs these 2 parameters:

- The workspace URI - How exactly?: "https://analytics.zoho.com/workspace/XXXXXXXXXXX"? Just the workspace ID? Or is it something else?
- Table structure in JSON format - Is it just the structure?, Can't I use a JSON full with data, like when doing it manually from Analytics ("Import Data -> Pasted Data -> JSON")?

I've been trying different things but nothing seems to work. Could I please get an example of a call to this method/function?

Also, once the Table is created (whether it's via API or manually), I'll want to update it -again- via API using JSONs, which method from the Library could help me with this? When importing/updating, the way I'd need it to work is:"Add the registers that are in the JSON but not in the Table, remove the registers that are in the Table but not in the JSON, and keep the ones that are in both".

I hope you'll be able to assist me with this matter,

Thanks in advance, greetings!

    Access your files securely from anywhere

        Zoho Developer Community




                                  Zoho Desk Resources

                                  • Desk Community Learning Series


                                  • Digest


                                  • Functions


                                  • Meetups


                                  • Kbase


                                  • Resources


                                  • Glossary


                                  • Desk Marketplace


                                  • MVP Corner


                                  • Word of the Day



                                      Zoho Marketing Automation


                                              Manage your brands on social media



                                                    Zoho TeamInbox Resources

                                                      Zoho DataPrep Resources



                                                        Zoho CRM Plus Resources

                                                          Zoho Books Resources


                                                            Zoho Subscriptions Resources

                                                              Zoho Projects Resources


                                                                Zoho Sprints Resources


                                                                  Qntrl Resources


                                                                    Zoho Creator Resources



                                                                        Zoho Campaigns 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