Replies: 4 comments
-
The Rust crate is entirely generated from their API spec, which doesn't constitute great documentation unfortunately. It also links to the official docs which generally is much more helpful for getting a bearing. With that knowledge, it should be possible to go back to the crate and find the calls you are looking for. Uploads are generally supported and somewhat described here.
Please consult the official google docs for examples and guides, this project is just a binding generator. |
Beta Was this translation helpful? Give feedback.
-
I |
Beta Was this translation helpful? Give feedback.
-
Maybe it is possible. I actually spent two hours trying to make it happen, and couldn't. Please give me a at least a hint where to look. |
Beta Was this translation helpful? Give feedback.
-
Based on what I see in the upload media docs I think the first step is to upload bytes. For that I don't see any generated methods as it's apparently outside of the specification or the generator can't pick it up. This is probably something to do by hand using an HTTP client, and take it from there with the creation of media items, for which there is an API surface. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I've spent a couple of hours looking at the docs of the rust package, but didn't find a way to upload bytes to the Google Photos server.
Maybe I'm missing something obvious, but I didn't manage to find any references to the
/v1/uploads
method.Can you please add an example of how to upload bytes?
Beta Was this translation helpful? Give feedback.
All reactions