simonedegiacomi / gphotosuploader

Unofficial Google Photos uploader and Go library
GNU General Public License v3.0
99 stars 29 forks source link

impossible to retrieve uploaded image ID/URL from the library #6

Closed nmrshll closed 6 years ago

nmrshll commented 6 years ago

So far it's impossible to access the ID of an image right after upload, it's only used internally by the library, but not returned to "the outside" (the code that uses the library) It could be useful for several reasons:

A solution would be to include it in some struct returned by the tryUpload method.

I'm working on that, tell me what you think about it. My plan is to return a struct that contains only the ID, since the URL can be deduced from the ID I'll add a method to re-generate it from the ID.