0

Does anyone knows how I can easily retrieve etag headers if I use google admin SDK in Java. I mostly using directory API. But for some reason object returned do not give Etag information. This can be very handy to avoid retrieving some information in case data is not changed on the server. ( For example if user was not modified) THanks

Jay Lee
  • 13,415
  • 3
  • 28
  • 59
Sem
  • 3
  • 2

1 Answers1

0

If you use the latest version of the library you can do:

Users users = list.execute();
String etag = users.getETag();
Silvano
  • 1,005
  • 6
  • 6