Getting portal ID from Zoho Projects REST API

Getting portal ID from Zoho Projects REST API

Hello,

I have copied the java example API website into an eclipse project (from this link)-

After following the instructions for retrieving the portal ID from Zoho's REST API, I still cannot get the ID- 

This is my URL object- 

 url = new URL("https://projectsapi.zoho.com/restapi/portals/" + parameters);


There is no error thrown for the line above, but when it gets to this line, an error 400 is returned-

BufferedReader bf = new BufferedReader(new InputStreamReader(request.getInputStream()));


Once again, I have my authorization token, and am able to instantiate the URL object successfully with (what I think) is the proper parameter. Does anyone know what could be going on here? Attached below is a screenshot of my entire code file.


Thanks!

    Zoho Desk Resources

    • Desk Community Learning Series


    • Digest


    • Functions


    • Meetups


    • Kbase


    • Resources


    • Glossary


    • Desk Marketplace


    • MVP Corner


    • Word of the Day


      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 Campaigns 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 コンテンツ




                              ご検討中の方