Making Google Sheet Into a Public REST API

  Рет қаралды 6,484

One Scales

One Scales

Күн бұрын

Пікірлер: 68
@pedroalonso1048
@pedroalonso1048 11 күн бұрын
Amazing! Will this code by any chance be updated to allow for filters or delete other methods like delete or patch?
@onescales
@onescales 10 күн бұрын
Yes you can modify the code in any way fit. Either ask a developer or chatgpt or other ai and you could add to it
@chrisder1814
@chrisder1814 10 күн бұрын
Hello, I made a product catalog on Google sheet, and I would like to sell my products on multiple marketplaces, I would like my stock to be synchronized on all marketplaces For this, would I have to use the APIs?
@onescales
@onescales 9 күн бұрын
It is doable with an excel sheet but much more efficient via your ecommerce platform. For example if you have shopify you just setup your invesntory there and your marketplaces integrations will handle everything. and to answer your apis question, yes you would need apis to integrate with the marketplaces.
@kwwong8633
@kwwong8633 11 ай бұрын
really thanks to this simple yet efficient way to insert data. is that a way I could manage more than one column? especially for writing. thanks in advance.
@onescales
@onescales 11 ай бұрын
Your welcome. Yes it is possible to modify the script fairly easily to support more than one column. It’s in our todo task list to improve this tutorial but currently not in priority. Sorry about that. Once I get to it I can update you. Otherwise if you are brave you can try chatgpt to ask it to improve the code to have 2 columns and you probably can get it to work
@kwwong8633
@kwwong8633 10 ай бұрын
really appreciate much for your prompt feedback. looking forward to the new updates. thank you.
@onescales
@onescales 10 ай бұрын
@@kwwong8633hope to have an update for you
@amarildocs
@amarildocs 6 ай бұрын
Would it be possible to insert more values ​​in more than one column? If you could make a video lesson updating this one, then that would be great!
@onescales
@onescales 6 ай бұрын
it's in our todo list. trying to expedit this. will update you once complete
@user-le2zv6go3v
@user-le2zv6go3v 4 ай бұрын
extremely helpful!
@onescales
@onescales 4 ай бұрын
Glad it helped!
@AstraSoft254
@AstraSoft254 6 күн бұрын
Can you make a Video showing how i can make REST Api with it
@onescales
@onescales 5 күн бұрын
this sheet is a rest api. can you explain more what you need?
@JobinAugustine
@JobinAugustine Жыл бұрын
Thank you for this video, it gave me a good starting for my Apps Script
@onescales
@onescales Жыл бұрын
Your welcome. Good luck in your next steps
3 ай бұрын
Using this video I was able to push my sheet (a row w/a "title" and "description" column ) to a blog post! Thanks! Any resources or help on how to get images to post as a featured image? I added a new column for "external image URL" but not having luck.
@onescales
@onescales 3 ай бұрын
Can you explain more? You want to add another column for image url but what data do you want? The actual image or just a text url?
3 ай бұрын
@@onescales Sure, I added another column G that will take an input of an external image's URL. any random image from google. I want that image to be the post's featured image.
@onescales
@onescales 3 ай бұрын
is your question? how to add an additional column to input this data? how to grab an image? can you share more and give an example?
3 ай бұрын
​@@onescales I have the empty column in google sheets. The input for the image will be a URL (for example .jpg). I also have a column for Post Title and Post content which uploads properly, but image is not being uploaded into the post's featured image. Would it be possible to get in touch with you directly so I can share the sheet and script?
3 ай бұрын
@@onescales yes specifically i want to grab the image and upload it as the featured image
@haha7836hahah
@haha7836hahah Жыл бұрын
I want to add some authorization to the api. Is there a way to store environment variables or do i need to put the token in the code for performing comparisons
@onescales
@onescales 10 ай бұрын
should be possible by setting a set key in the code and asking for this as another parameter
@chrisder1814
@chrisder1814 13 күн бұрын
I still can't understand, could you give me some sites, URLs that I could read to understand what appscript would allow me to do
@onescales
@onescales 12 күн бұрын
simply put, google sheets is a spreadsheet. apps scripts allow you to add coding to make it do more things. this video uses code (aka appscript) to make it easy to import automatically data from other places.
@chrisder1814
@chrisder1814 12 күн бұрын
@onescales Ok what I meant is that I'm having trouble following correctly, could you recommend some websites to read so that I can better understand the basics and then what I Can do with appscript compare to other languages
@onescales
@onescales 12 күн бұрын
Probably the best is to use chatgpt to explain more detail. Other alternative is to check in google or KZbin for tutorials for beginners
@chrisder1814
@chrisder1814 11 күн бұрын
@@onescales Yes, that's obviously what I did, but you don't know?
@onescales
@onescales 11 күн бұрын
@@chrisder1814 not sure what you’re looking for. Can you share more detail?
@김현성-v7t4p
@김현성-v7t4p 11 ай бұрын
You are genius.
@onescales
@onescales 11 ай бұрын
Thanks. Happy you like the topic
@sadathkhan8416
@sadathkhan8416 6 ай бұрын
Awesome, thank you!
@onescales
@onescales 6 ай бұрын
@@sadathkhan8416 glad you liked it.
@patricklafontaine4313
@patricklafontaine4313 10 ай бұрын
Hi! thanks for this, its working fine but I have an issue with a 3rd party app that only sent post request. It looks like the script only get params from the url so does not catch params from json post request... Do you have any ideas on how to do it? Maybe a line to add to catch those json params? Thanks!
@onescales
@onescales 10 ай бұрын
Hi. I'm pretty sure you can make it work by changing the doGET function to doPOST. Do you have the same exact requirements as in the video?
@patricklafontaine4313
@patricklafontaine4313 10 ай бұрын
Yes, I was able to make it works just after my previous comment, it was exactly that, I used DoPost() and adjust my request with my params and its working. The only little issue is that it wont trigger change event trigger, so I need to use more code to do what I want inside the DoPost(). Pretty cool feature no matter this! :) thanks again!@@onescales
@patricklafontaine4313
@patricklafontaine4313 10 ай бұрын
actually, I still have an issue or 2... its working but wont do some code. I tried the same code on my change event and its working well, but from DoPost() it wont execute those lines: var today = new Date(); var year = today.getFullYear(); if(sheet.getRange(3,19).getValue()==0 || sheet.getRange(3,19).getValue()==""){ sheet.getRange(3,19).setValue(1); sheet.getRange(3,20).setValue(year);} dont know why, and the other thing is that it seems not to trigger zapier event neither. Pretty weird, I try to make it working but not sure on what to do with my content since it wont trigger anything. I ll try to make another web request from DoPost() to forward my data but I must make the calculation works before.@@onescales
@onescales
@onescales 10 ай бұрын
try to output error. this will be the best way to beug and figure out@@patricklafontaine4313
@patricklafontaine4313
@patricklafontaine4313 10 ай бұрын
Thanks for reply! It started working suddenly… weird but I ll take it!💁😊 Thanks!
@mscaler4319
@mscaler4319 6 ай бұрын
Nice, Thank you!
@onescales
@onescales 6 ай бұрын
@@mscaler4319 your welcome
@MoAPPS-r3e
@MoAPPS-r3e 5 ай бұрын
ahh finally something workedddd
@onescales
@onescales 5 ай бұрын
@@MoAPPS-r3e happy to hear
@chrisder1814
@chrisder1814 5 ай бұрын
hello I had some ideas for using Google sheet and apps in general and I wanted to get your opinion since you know it much better than me
@onescales
@onescales 5 ай бұрын
share more in the comments
@chrisder1814
@chrisder1814 5 ай бұрын
@onescales could I send you an email?
@chrisder1814
@chrisder1814 5 ай бұрын
@onescales hello could I send you an email
@chrisder1814
@chrisder1814 5 ай бұрын
@@onescales hello, can I send you an email?
@chrisder1814
@chrisder1814 5 ай бұрын
​@onescales I would like to retrieve the history of my sales made on Amazon in a Google sheet I think that to use the Amazon API then you have to code in appscript? but I don't know anything about it, do you know the API connector extension? could I send you an email
@hanzo_process
@hanzo_process 4 ай бұрын
😍😍😍
@onescales
@onescales 4 ай бұрын
@@hanzo_process thanks :)
@RareLykeIN
@RareLykeIN Жыл бұрын
Great work my friend. Is it possible to reduce the delay between making the rest api request and receiveing data.
@onescales
@onescales Жыл бұрын
Thanks! Do you mean it takes time to get the data. For example -5 seconds? If so, depend on the size of your sheet but probably not much to optimize. Can you share more?
@RareLykeIN
@RareLykeIN Жыл бұрын
@@onescales Yes exactly that 5 seconds delay time, can it be reduced, like if we are to use it for some real time inventory management system or maybe controlling an IOT device ON/OFF state.
@onescales
@onescales Жыл бұрын
@@RareLykeIN not really. This free solution is not intended to be real time or used for time dependent tasks. For those you would want a server, database and code
@RareLykeIN
@RareLykeIN Жыл бұрын
​@@onescalesAlso I was curious if we can add connection like websocket to monitor data instead of refreshing the URL. What is your opinion?
@onescales
@onescales Жыл бұрын
@@RareLykeIN I don’t think so. It is not intended to be used this way.
Convert Google Sheets into a REST API
14:10
Better Sheets
Рет қаралды 15 М.
How to Use Google Sheets as a Simple CMS
10:12
Coding in Public
Рет қаралды 12 М.
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
Power Tour: Key Feature Walk-Through
7:59
you
Рет қаралды 4
Create API From GOOGLE SHEET || HEMENDRA
17:19
Hemendra Velisetty
Рет қаралды 23 М.
Google Sheets Web App Example - Google Apps Script Web App Tutorial - Part 1
31:41
Learn Google Sheets & Excel Spreadsheets
Рет қаралды 815 М.
Add data to Google Sheet using App Script || Hemendra
14:02
Hemendra Velisetty
Рет қаралды 31 М.
This is How I Scrape 99% of Sites
18:27
John Watson Rooney
Рет қаралды 243 М.
Google Sheets… Your Next Database?
7:16
Fireship
Рет қаралды 412 М.
Python Django REST API In 30 Minutes - Django Tutorial
30:42
PedroTech
Рет қаралды 50 М.
Google Sheets - JSON API, Wep App - e.j1 p.1
23:04
Get __it Done!
Рет қаралды 36 М.
Integrating Spring AI with mcp.run
11:32
Dylibso
Рет қаралды 29
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН