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.
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 was wondering if there are modules, or code snippets to create a program that connects to the Microsoft store, in the background, and download an app(without pyAutoGUI). Thanks in advance.
There are no Official API's for accessing Microsoft store, A Possible solution is to use requests library or other equivalent to create a bot that can access various fields available on the website and navigate through, if you always want a certain(Same) application to be downloaded may be you can go directly to that links page and use get request for the download button as submit, this should work in theory, but again this will also keep breaking in short durations as Microsoft keeps making changes to it's website.
P.S. You might want to fool the website by adding headers to your request.
I would like to have students send me some Stata (.do) code by sharing it with me on Google Docs.
Is it possible to replace the shared with an updated version?
I don't see any option to do that in the File menu, just renaming and editing the file description.
Google Docs works well to share and correct papers, but I'm finding it difficult to share and correct anything else. Thanks for any help!
You can upload multiple versions of the same file. All the versions will be available for review later. To upload a new version, Just click on manage revisions (from where you are in your image) and a dialog will appear. Click on "upload new revision" and navigate to your updated file.
I believe gmail now let's you attach/share updated files to email via Google Drive, and it always keeps the most up-to-date version available. So you can simply update your .do file on your desktop, keep the updated version on your Google Drive, and your students should get them.
http://gmailblog.blogspot.com/2012/11/gmail-and-drive-new-way-to-send-files.html
You can also consider Google Code (http://code.google.com; if you have a gmail account, you also have the Code account, or at least you can transparently create one from the main Google account), and work with your code using the standard code sharing, development and maintenance tools like Mercurial and its various interfaces. I have developed Stata code pretty much professionally, trust me that this is a much better tool than Google Docs (and any other real programmer here on SO would confirm that).
Background: My idea is to create a primarily content-heavy website (think news articles or blog posts) written entirely in nodejs. Since creating content on Google Drive (Google Docs) in particular is very simple, what I would like to do is have Nodejs retrieve the website's content from Google Docs.
Challenge: As far as I can tell, the correct way to do this according to Google is to create a Service Account so that the application can access the files stored on Google Drive without requiring user-intervention in the form of a confirmation. Google provides three libraries--java, python, and php--for server-to-server requests. Does anyone know of anything similar already written by the Node community? I am aware of node-oauth but I've searched through it's source and haven't found anything referencing private keys, which are required for server-to-server interaction, which I'm taking to mean it's not supported. Writing one is also an option, but I'd like to avoid that if at all possible. Looking at the Google-written Java Oauth2 client library makes it pretty clear that it's not an easy task.
Thanks in advance!
This is one library I've found that looks pretty thorough and complete for creating JSON Web Tokens: JWCrypto
I know this thread is old, but in the event others arrive here looking for an answer:
Google is working on an official module to access all of their API's. Its alpha so be careful but it looks very nice- github repository
Google Docs have a feature "Web Clipboard" to help users easily copy and paste cross google documents. (you can refer to https://drive.googleblog.com/2010/02/a-web-clipboard-for-google-docs.html)
But I am wondering that if there's any Web API or official way to access those API.
I try to find in Google Document List APi (https://developers.google.com/google-apps/documents-list/), I can't find any related stuff.
The original goal for me is I want to copy some screenshot/images/text from my Windows OS.
And I want to paste into my GoogleDoc Document.
But it can't be done unless the screenshot/image/text is update/upload into Web Clipboard.
I keep finding any related integrated tools or extension, but I still can't find anyone.
Could someone give me some suggestions?
There is no official way to access this API, sorry.
There is clearly an API of sorts, just not documented. I'd suggest looking at extensions like this one and trying to reverse-engineer the protocol so you can see what endpoints it is calling.
But it sounds like a lot of work.