photoslibrary/v1 no longer available

200 views
Skip to first unread message

Pratik Tamgole

unread,
Jul 31, 2024, 9:05:10 AM7/31/24
to golang-nuts
Hi,

I'm trying to use the Go library photoslibrary/v1 but getting an error message saying:
 

And it seems they have removed it from the source.

How do I go about replacing this? Any other library that can help my app integrate with the GooglePhotos app? And if there is any other solution to working with the photoslibrary library? 


Regards, 
Pratik Tamgole

Message has been deleted

James Hawkins

unread,
Jul 31, 2024, 9:41:43 AM7/31/24
to golang-nuts
Hi Pratik,



v0.3.2
Apr 8, 2019
v0.3.1
Apr 8, 2019
v0.3.1-alpha
Apr 8, 2019
v0.3.0
Mar 26, 2019
v0.2.0
Mar 13, 2019
v0.1.0
Jan 2, 2019

Not sure where you getting the v0.189.0 version from that may be the symptom to your issue.


Regards,

James

Message has been deleted

peterGo

unread,
Jul 31, 2024, 10:00:37 AM7/31/24
to golang-nuts
Pratik Tamgole

Changes
https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md

v0.4.0

Deletes photoslibrary/v1. The photoslibrary team hopes to fully support Go in the near future, but this autogenerated library is ready to be sunset. If you rely on this client, please vendor this library at v0.3.2.

For v0.3.2:
https://github.com/googleapis/google-api-go-client/tree/v0.3.2/photoslibrary/v1

peter

Pratik Tamgole

unread,
Aug 1, 2024, 9:30:27 AM8/1/24
to golang-nuts
Hi,
Thank you for all the information.

Have tried using v0.3.2 and 0.189.0, but still getting the broken import error, the file does not seem to be there.

Changing the webapp on my side to be able to upload straight from the device rather than uploading it from google drive. 

Can you recommend resources to me if I want to make a repo like "https://pkg.go.dev/github.com/mathieubrun/go-google-photos-api/photoslibrary/v1" as a substitute?
 
Again thanks for all your help!

Regards,
Pratik Tamgole.

robert engels

unread,
Aug 1, 2024, 10:16:38 AM8/1/24
to Pratik Tamgole, golang-nuts
It should be fairly straightforward to use the Rest api directly https://developers.google.com/photos/library/guides/get-started

You can also look at the Java or PhP client library and reimplement in Go - sadly it doesn’t seem they provide the raw proto files you could use to generate the Go structs so you’ll have to do it by hand for the operations you need.

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/ebdd26be-462f-4924-8085-c0a9f8f9cd70n%40googlegroups.com.

robert engels

unread,
Aug 1, 2024, 10:25:19 AM8/1/24
to Pratik Tamgole, golang-nuts
There is also a third-party library that might work or be a great starting point: https://github.com/gphotosuploader/google-photos-api-client-go

peterGo

unread,
Aug 1, 2024, 8:41:27 PM8/1/24
to golang-nuts
On Thursday, August 1, 2024 at 9:30:27 AM UTC-4 Pratik Tamgole wrote:

Have tried using v0.3.2 and 0.189.0, but still getting the broken import error, the file does not seem to be there.

 
Really!

Follow the photoslibrary team instructions from my earlier post:  "vendor this library at v0.3.2."


peter
Reply all
Reply to author
Forward
0 new messages