google / java-photoslibrary

Java client library for the Google Photos Library API
http://developers.google.com/photos
Apache License 2.0
107 stars 64 forks source link

How to request only specified fields in API reponses ? #13

Closed bubbleguuum closed 5 years ago

bubbleguuum commented 5 years ago

I want some requests to only return certain fields as explained here:

https://developers.google.com/photos/library/guides/performance-tips

How is it done with this API ?

jfschmakeit commented 5 years ago

Unfortunately this feature is only supported by the HTTP REST endpoint and not this client library.

It is not possible to restrict the fields that are returned by the client library due to the underlying network architecture and how calls to the API are made.

bubbleguuum commented 5 years ago

Thank you for letting me know. Not a huge deal but it would be great to have this functionality added if it provides a significant improvement in loading and processing times. Many apps need only a handful of fields in JSON.