I am trying to post some data from the client side to the google spreadsheet. After looking hard through their documentation for v4 I haven't found a way.
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- void before promise syntax
- Keeping track of variable instances
- Can php detect if javascript is on or not?
How to Write to to a Cell Using Spreadsheet API in JS
In essence, you have to know XHR. I'll give you an example. Let's say you want to write to A1:B1 range of your spreadsheet, say [A1]Hello [B1]World.
Your URI request would look like this:
request body:
Did this in oauthplayground using Google Sheetsv4 and it worked.
How to apply this in JS?
After setting up the JS Quickstart find a way to call this inside a function:
Also read Reading & Writing cells in Sheets v4. Hope this crash course helps.