Zoho WorkDrive API Problem

Zoho WorkDrive API Problem

I tried accessing the API listed here https://workdrive.zoho.com/apidocs/v1/folders more specifically List Files/Folders inside a Folder.

The code that I utilize to attempt this is as follows:

$post = [
    'Zoho-oauthtoken' => '1000.f189b94e54fe74192837c3e3df3be21a.10a079e7b1cfb9cdc86cc1dcbd191363',
    'client_secret' => '',
    'client_id' => '',  
];



$ch = curl_init();
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt( $ch, CURLOPT_CUSTOMREQUEST, 'GET' );
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/x-www-form-urlencoded'));

$response = curl_exec( $ch );

echo '<pre>';
print_r($response);


Unfortunately I get the following error:
{"errors":[{"id":"R008","title":"Unauthorized access"}]}

I event tried the following in the URL bar:

And with that I get the following error:
{"errors":[{"id":"F6012","title":"Number of parameters is more than specified"}]}

Any help would be greatly aprpeciated.



      Zoho Campaigns Resources


        • Desk Community Learning Series


        • Digest


        • Functions


        • Meetups


        • Kbase


        • Resources


        • Glossary


        • Desk Marketplace


        • MVP Corner


        • Word of the Day


        • Ask the Experts


          Zoho CRM Plus Resources

            Zoho Books Resources


              Zoho Subscriptions Resources

                Zoho Projects Resources


                  Zoho Sprints Resources


                    Zoho Orchestly Resources


                      Zoho Creator Resources


                        Zoho WorkDrive Resources



                          Zoho CRM Resources

                          • CRM Community Learning Series

                            CRM Community Learning Series


                          • Tips

                            Tips

                          • Functions

                            Functions

                          • Meetups

                            Meetups

                          • Kbase

                            Kbase

                          • Resources

                            Resources

                          • Digest

                            Digest

                          • CRM Marketplace

                            CRM Marketplace

                          • MVP Corner

                            MVP Corner




                            Zoho Writer Writer

                            Get Started. Write Away!

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

                              Zoho CRM コンテンツ



                                ご検討中の方