hello anchnk,
i'm actually trying to get images from google patents (which returns images from the books.google.com server) but i haven't been able to figure out if i can use a java client library with google patents (which is what i would really like to do). so i've been using a simple restful interface.
to get the authentication key i use modified (a bit long to post here) code from this link -
http://code.google.com/apis/base/samples/java/InsertExample.java which gives me the key.
but i don't exactly know how to put the key (auth) and send it in a request header before calling loadImage or requestImage...
is it something like this ?
HttpURLConnection connection = (HttpURLConnection)(url).openConnection();
connection.setDoInput(true);
connection.setDoOutput(true);
connection.setRequestMethod("GET");
connection.setRequestProperty("Content-Type", "application/atom+xml");
connection.setRequestProperty("Authorization", "GoogleLogin auth=" + token);
connection.setRequestProperty("X-Google-Key", "key=" + DEVELOPER_KEY);
where token is the auth key?
i've tried all sorts of things on and off for a couple of days and can't seem to find a solution..
thanks again.