aspose file tools
The moose likes Other Open Source Projects and the fly likes Google Custom Search REST API Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply Bookmark "Google Custom Search REST API" Watch "Google Custom Search REST API" New topic
Author

Google Custom Search REST API

Patrick Noah
Greenhorn

Joined: Aug 22, 2011
Posts: 28
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]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35257
    
    7
Just to make sure: You're passing in the actual values for the "key" and "cx" parameters, not the dummy values you posted, correct?


Android appsImageJ pluginsJava web charts
Patrick Noah
Greenhorn

Joined: Aug 22, 2011
Posts: 28
Yes, I am passing in the values provided to me by google.
Patrick Noah
Greenhorn

Joined: Aug 22, 2011
Posts: 28
I figured it out, I did not have the query string argument "q="
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Google Custom Search REST API
 
Similar Threads
https URLConnection
Accessing Web pages from Google
Android httpURLConnection
How to capture a response from a Server?
please help me in how to create a java application to give url and get the requested page