How to read data from Google Drive, such as file name, etc.?
I want to get the file name, the link and the picture of the first page of a book (if it's possible) in Google Drive using Kotlin.
Google Drive has a REST API, check the documentation here:
https://developers.google.com/drive/api/v3/about-sdk
Specifically, there is a service to search files:
https://developers.google.com/drive/api/v3/search-parameters
In Android you can consume REST API using Retrofit:
https://square.github.io/retrofit/
It works perfectly with Kotlin.
Related
I want to save the log recorded in the Bixby js file as an external file (txt). Is there any way?
Or can I save the debugged process as an external file?
In the JavaScript API supported by Bixby js, there is no API that saves as an external file, so I want to find a way.
There is no built-in saving log to local files since Bixby is running in cloud. Also for security and privacy reasons Bixby is designed not to access storage on user's phone.
If the provided console log in simulator is not enough, a REST API is the easiest way to "save logs to external file". Any REST API that saves logs would do.
Here is a tutorial made by a brilliant Bixby developer on AWS. The interface of AWS may get changed a little bit over the past year, but the concepts and steps are all the same.
I would like to use Google Drive API to list changed files / new files in a specific folder using node-red.
I would like use the following flow:
https://flows.nodered.org/node/node-red-contrib-google
Any advice how to create a simple flow that achieves this?
Is there a quick way to use web exposed APIs value in Google Sheet or Google Docs.
I've been researching a bit and I found Google Sheet API v4, but only applies to Google Sheet data or resources, not externals one in document.
EDIT: I don't want to develop a complete backend in Node nor Java (if possible), just a direct way to execute an script in Google Sheet/Doc, in order to get the data available.
Thanks!
The available "direct way" of operating on Google Docs or Google Sheets that's available is through Apps Scripts. For Sheets, there's Class Sheet and for Google Docs there's Document Service.
I looked thru the internet and didn't found a solution how to make this:
I want to make google extension which will use Google API or something to connect the extension to Google drive and create/update files there( i will need mostly plain text documents to store there arrays). i will need it only for personal use, so any hacks are also acceptable.
Have anyone done anything like this before? i just need the starting point.
I have made an example that is available on Github. It is available here. It transforms the some emails from GMails into PDFs stored in Drive.
You can reuse it, you simply need to copy the Drive part and not the GMail API part. The steps you'll need to follow are :
Use the Chrome identity API to retrieve an access token for the Drive API
Use the Drive API javascript client to upload your text files. The tricky part is to upload it properly, use the examples on the github project to see what the request should look like.
or, Can i create/modify google docs by 3rd application?
Google does not share info on their native, proprietary format--possibly called "kix" according to this StackExchange answer.
You CAN programmatically create, modify and destroy Google Drive document files in 3rd party apps (or build your own) by manipulating representations of those files exposed by various Google APIs and scripting services. It took a bit of truffle-hunting through the online documentation, but I did find a description of the structure of a Google Doc here: Extending Google Docs.
Again, this is a description of a representation of the file, not the file itself.