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!

    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