News for hackers. Stuff that matters.
Re:Show HN: myphotos.site – Google photos to a website in 60... by darubramha on Thursday November 28, 2024 @07:19AM (#42264705)
Looks awesome, and will help quick galleries to be created.

I wanted to build something similar, but at that time photos did not expose APIs to get list of photos.

What was your work around? Or have they opened up the APIs now?

Re:Show HN: myphotos.site – Google photos to a website in 60... by gabigrin on Thursday November 28, 2024 @08:14AM (#42265019)
Thanks! We're using the Google Picker API - https://developers.google.com/photos/picker/reference/rest You create a picker "session" which is a link where the user can select images from Google's side. Then you poll the session and once the user is done, you can get access to the media items (imgs and videos) that the user selected.

At first, we wanted to auto-sync galleries and were bummed by the way this API works, but tbh it ended up being more private and secure for the user (no auto-syncing that embarrassing picture that shouldn't be online) and helped us avoid implementing a picker on our end.

Re:Show HN: myphotos.site – Google photos to a website in 60... by gnaman on Thursday November 28, 2024 @09:25AM (#42265477)
How long is the session active for? Do you store these photos on your servers?
Re:Show HN: myphotos.site – Google photos to a website in 60... by gabigrin on Thursday November 28, 2024 @12:38PM (#42267151)
The session is active for couple of hours IIRC. Once the user is done with the selection we upload the images to our servers (Supabase storage) and delete the GPhotos session.
Re:Show HN: myphotos.site – Google photos to a website in 60... by kiwicopple on Monday December 02, 2024 @06:17AM (#42295066)
thanks for using supabase - feel free to reach out if you have any feedback/issues
Re:Show HN: myphotos.site – Google photos to a website in 60... by mxuribe on Thursday November 28, 2024 @08:05AM (#42264956)
I'm not affiliated with this effort, but would the following google api suffice? https://developers.google.com/photos
Re:Show HN: myphotos.site – Google photos to a website in 60... by Alifatisk on Thursday November 28, 2024 @07:46AM (#42264835)
Curious about this aswell