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

> On Aug 1, 2024, at 9:15 AM, robert engels <reng...@ix.netcom.com> wrote:
> 
> It should be fairly straightforward to use the Rest api directly 
> https://developers.google.com/photos/library/guides/get-started 
> <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.
> 
>> On Aug 1, 2024, at 1:41 AM, Pratik Tamgole <pratiktamg...@gmail.com 
>> <mailto:pratiktamg...@gmail.com>> wrote:
>> 
>> 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.
>> 
>> Also James, tried the 
>> https://pkg.go.dev/github.com/mathieubrun/go-google-photos-api/photoslibrary/v1
>>  
>> <https://pkg.go.dev/github.com/mathieubrun/go-google-photos-api/photoslibrary/v1>
>>  but to no avail.
>> 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
>>  
>> <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.
>> 
>> On Wednesday, July 31, 2024 at 7:30:37 PM UTC+5:30 peterGo wrote:
>> Pratik Tamgole
>> 
>> Changes
>> https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md 
>> <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
>>  
>> <https://github.com/googleapis/google-api-go-client/tree/v0.3.2/photoslibrary/v1>
>> 
>> peter
>> 
>> On Wednesday, July 31, 2024 at 9:05:10 AM UTC-4 Pratik Tamgole wrote:
>> Hi,
>> 
>> I'm trying to use the Go library photoslibrary/v1 but getting an error 
>> message saying:
>>  
>> "google.golang.org/api/photoslibrary/v1 
>> <http://google.golang.org/api/photoslibrary/v1>: module 
>> google.golang.org/api@latest <http://google.golang.org/api@latest> found 
>> (v0.189.0), but does not contain package 
>> google.golang.org/api/photoslibrary/v1 
>> <http://google.golang.org/api/photoslibrary/v1>"
>> 
>> 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
>> 
>> 
>> -- 
>> 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+unsubscr...@googlegroups.com 
>> <mailto:golang-nuts+unsubscr...@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
>>  
>> <https://groups.google.com/d/msgid/golang-nuts/ebdd26be-462f-4924-8085-c0a9f8f9cd70n%40googlegroups.com?utm_medium=email&utm_source=footer>.
> 
> 
> -- 
> 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+unsubscr...@googlegroups.com 
> <mailto:golang-nuts+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/golang-nuts/10081CDD-3BDA-4362-92FE-5398F4BBE3C7%40ix.netcom.com
>  
> <https://groups.google.com/d/msgid/golang-nuts/10081CDD-3BDA-4362-92FE-5398F4BBE3C7%40ix.netcom.com?utm_medium=email&utm_source=footer>.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/F50EC8E8-D246-48E7-ACE9-AA8DF92AA109%40ix.netcom.com.

Reply via email to