Making Google Sheet Into a Public REST API

Поділитися
Вставка
  • Опубліковано 14 жов 2024

КОМЕНТАРІ • 56

  • @kwwong8633
    @kwwong8633 7 місяців тому +1

    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  7 місяців тому

      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 7 місяців тому +1

      really appreciate much for your prompt feedback. looking forward to the new updates. thank you.

    • @onescales
      @onescales  7 місяців тому

      @@kwwong8633hope to have an update for you

  • @user-le2zv6go3v
    @user-le2zv6go3v 28 днів тому

    extremely helpful!

  • @JobinAugustine
    @JobinAugustine 9 місяців тому

    Thank you for this video, it gave me a good starting for my Apps Script

    • @onescales
      @onescales  9 місяців тому

      Your welcome. Good luck in your next steps

  • @amarildocs
    @amarildocs 3 місяці тому

    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  3 місяці тому

      it's in our todo list. trying to expedit this. will update you once complete

  •  6 днів тому

    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  6 днів тому

      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?

    •  6 днів тому

      @@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  6 днів тому

      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?

    •  5 днів тому

      ​@@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?

    •  5 днів тому

      @@onescales yes specifically i want to grab the image and upload it as the featured image

  • @hanzo_process
    @hanzo_process Місяць тому

    😍😍😍

    • @onescales
      @onescales  Місяць тому

      @@hanzo_process thanks :)

  • @sadathkhan8416
    @sadathkhan8416 3 місяці тому

    Awesome, thank you!

    • @onescales
      @onescales  3 місяці тому

      @@sadathkhan8416 glad you liked it.

  • @MoAPPS-r3e
    @MoAPPS-r3e 2 місяці тому +1

    ahh finally something workedddd

    • @onescales
      @onescales  2 місяці тому

      @@MoAPPS-r3e happy to hear

  • @mscaler4319
    @mscaler4319 3 місяці тому

    Nice, Thank you!

    • @onescales
      @onescales  3 місяці тому

      @@mscaler4319 your welcome

  • @chrisder1814
    @chrisder1814 2 місяці тому

    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  2 місяці тому

      share more in the comments

    • @chrisder1814
      @chrisder1814 2 місяці тому

      @onescales could I send you an email?

    • @chrisder1814
      @chrisder1814 2 місяці тому

      @onescales hello could I send you an email

    • @chrisder1814
      @chrisder1814 2 місяці тому

      @@onescales hello, can I send you an email?

    • @chrisder1814
      @chrisder1814 2 місяці тому

      ​@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

  • @김현성-v7t4p
    @김현성-v7t4p 8 місяців тому

    You are genius.

    • @onescales
      @onescales  8 місяців тому

      Thanks. Happy you like the topic

  • @haha7836hahah
    @haha7836hahah 10 місяців тому

    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  7 місяців тому

      should be possible by setting a set key in the code and asking for this as another parameter

  • @patricklafontaine4313
    @patricklafontaine4313 7 місяців тому

    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  7 місяців тому

      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 7 місяців тому

      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 7 місяців тому

      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  7 місяців тому

      try to output error. this will be the best way to beug and figure out@@patricklafontaine4313

    • @patricklafontaine4313
      @patricklafontaine4313 7 місяців тому

      Thanks for reply!
      It started working suddenly… weird but I ll take it!💁😊
      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  Рік тому +1

      @@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  Рік тому +1

      @@RareLykeIN I don’t think so. It is not intended to be used this way.