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!