I'm trying to refactor a Java application using the Picasa Web Albums API to using the new Google Photos api.
In Picasa API you had the PhotoEntry object, which represented the uploaded entity and one could access the URL to the uploaded image as follows:
photoEntry.getMediaThumbnails().get(0).getUrl();
This url could be used in a website as static content.
Currently I'm at a loss how to get a permanent url to an uploaded image with Google Photos API. There is the MediaItem object, which represents an uploaded image, but I can't figure out how to get a permanent url from it.
I find 2 types of url in the MediaItem API:
mediaItem.getBaseUrl()
This url expires after 60 minutes and
mediaItem.getProductUrl()
cannot be used for static content, since it requires to be logged in.
Anybody can tell me what I overlooked ?
Thanks Regards