nmrshll / google-photos-api-client-go

Google photos api client in go
35 stars 12 forks source link

Is google.golang.org/api/photoslibrary/v1 removed #6

Open mong0520 opened 5 years ago

mong0520 commented 5 years ago

HI, your project is awesome, I have a question about "google.golang.org/api/photoslibrary/v1" For official google photo API clients, it seems be removed (Ref: https://github.com/googleapis/google-api-go-client).

Do you have any idea about this?

pdecat commented 5 years ago

Yes it was removed in 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.

https://github.com/googleapis/google-api-go-client/blob/aac82e61c0c8fe133c297b4b59316b9f481e1f0a/CHANGES.md#v040

You have to get version 0.3.2:

# go get google.golang.org/api@v0.3.2

cf. https://github.com/nmrshll/google-photos-api-client-go/pull/4 and https://github.com/googleapis/google-api-go-client/issues/354 and https://code-review.googlesource.com/c/google-api-go-client/+/39951

pacoorozco commented 5 years ago

Fixed on https://github.com/gphotosuploader/google-photos-api-client-go v1.0.1