Forums Register Login

Google Custom Search REST API

+Pie Number of slices to send: Send
Hi, I am trying to consume the google custom search REST API with the following java code. I get an exception that says "bad request". What am I doing wrong? Here is the google api documentation I have been following: https://developers.google.com/custom-search/v1/getting_started

Thanks in advance.



[Added code tags - see UseCodeTags for details]
+Pie Number of slices to send: Send
Just to make sure: You're passing in the actual values for the "key" and "cx" parameters, not the dummy values you posted, correct?
+Pie Number of slices to send: Send
Yes, I am passing in the values provided to me by google.
+Pie Number of slices to send: Send
I figured it out, I did not have the query string argument "q="
It was the best of times. It was the worst of times. It was a tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 2164 times.
Similar Threads
Android httpURLConnection
https URLConnection
please help me in how to create a java application to give url and get the requested page
Accessing Web pages from Google
How to capture a response from a Server?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 07:49:06.