Hi Dan
In the google-api-client-java group, Yaniv Inbar - Google engineer, wrote :
In theory google-api-java-client support Google Contacts, but you have to write your own XML data model for it. I recommend you ask this question on the Google Contacts support forum to ask them if they have plans to improve the situation.
But from your answer, I conclude it is not possible, not even when developing your own XML data model ?
I tried this :
GoogleOAuthDomainWideDelegation googleOAuthDomainWideDelegation = new GoogleOAuthDomainWideDelegation();
googleOAuthDomainWideDelegation.parameters = getOauthHmacParameters();
HttpTransport transport = new NetHttpTransport();
HttpRequestFactory requestFactory = transport.createRequestFactory(googleOAuthDomainWideDelegation);
HttpRequest request = requestFactory.buildGetRequest(new GenericUrl(url));
try {
printResponse(request.execute());
} catch (HttpResponseException e) {
printResponse(e.getResponse());
System.out.println("-------------- ERROR --------------");
System.out.println(e.getMessage());
}
And I do get results back. So it does seem to work ?
But since the API is not part of the discovery, I dont know where to find out about the structure of the feed.
Any feedback very welcome.
Koen