I am trying to create google sheet document using node js.
I found libraries only for reading and writing, not for create new one.
Can anyone help me, or recommend some way how can I do it?
You just need check it out here: https://www.npmjs.com/package/google-spreadsheet. I think you will find what you need.
In order to create a new Spreadsheet with Node.js you can either use Sheets API with the method create (the one I would recommend), this is an example of its implementation in Node.js or with Drive API with the method create.
Here is the quickstart guide for Sheets API for Node.js and this one is the quickstart guide for Drive API.
Related
Is it possible to make a React.js and Node.js registration form and store all the data in google sheet directly?
If yes can anyone suggest GitHub source code link or the procedure to do the same?
Other useful links are also appreciated.
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.
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.
I would like to use redis to query data from commandline, scripts, web and from within spreadsheets. I can find good examples for all but spreadsheets...
I don't quite know where to start for access from a MS Excel spreadsheet, though. Google is failing me.
Please let me know how you would suggest doing this, thanks!
p.s. for those unfamiliar redis is a key-value datastore described here: http://code.google.com/p/redis/
I think I found what I want with XLLoop http://xlloop.sourceforge.net/
make yourself a RESTful/SOAP based webservice to wrap around the redis functionality you want to deploy, and then access it from excel.
excel web services toolkit http://oreilly.com/pub/h/1306