using Berry with Google drive API #18758
-
Q: Has anyone got a sample of authenticating and accessing google APIs from Berry? I found a curl/scripting description here: It looks like you can create a service account, share a folder with it, and create an access key (json file?). (use case: posting jpeg images to google drive for a timelapse recording implementation, or motion detection). |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 31 replies
-
I don't know about Drive upload but RandomNerdsTutorials have a few instructions on how to directly write data to a Google sheet. That doesn't involve using a service account. Regarding service account and token, this is not much about Berry. You do that once in the GCloud console. |
Beta Was this translation helpful? Give feedback.
-
For future visitors:
|
Beta Was this translation helpful? Give feedback.
-
The result of this discussion: prototype google api classesFor the moment, only writing files. |
Beta Was this translation helpful? Give feedback.
-
@s-hadinger - quick question - can you imagine a way to do a multipart upload through wcclient? At the moment, I'm writing files to gdrive in two shots, the first creates the file metadata (a json), and the second uploads the image (binary). But you can do this in one POST of multipart style... I see that we can get the tcp stream, and write to it, but I'm unsure if this would be the correct approach (and what about SSL?) Google's docs: https://developers.google.com/drive/api/guides/manage-uploads#http_1 |
Beta Was this translation helpful? Give feedback.
It's working now with the latest commit in
development
branch.