JSON Data from Google Spreadsheet Setup and Shares on your Webpage

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

КОМЕНТАРІ • 35

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

    Excellent explanation, super clear. It's just I needed it. Thank you!

  • @FleynSoft
    @FleynSoft 2 роки тому +2

    Thank You Master 💪

  • @ankanghosh9837
    @ankanghosh9837 3 роки тому +1

    great thank you

  • @user-qf8ti3bi6n
    @user-qf8ti3bi6n Рік тому +1

    Hello
    After changing of figures for example 5 to 10, how to do that that old background color back to normal color( without ) it?
    And so on. From 10 to 3, background change again for new and old one too.
    thanks in advance

  • @_jacob
    @_jacob 2 роки тому +2

    How would I impliment a way to get strings through this? Thanks for the great tutorial!

    • @LaurenceSvekisCourses
      @LaurenceSvekisCourses  2 роки тому +1

      This was an older way, they've changed the output from sheets now to get directly from queries just like a database. I have several newer videos on this topic. You can create the strings on the AJAX request it doesn't have to be an object

  • @RiiiiNNN
    @RiiiiNNN 2 роки тому +1

    Great tutorial sir. Thank you for this. I just want to ask if you know how to create a dropdown list and fetch from g.sheets and then the answer is chosen can display on the webpage. I hope you get it. Thank you again

    • @LaurenceSvekisCourses
      @LaurenceSvekisCourses  2 роки тому

      You can make an initial request for the data or setup thee end point to return back specific queries

    • @RiiiiNNN
      @RiiiiNNN 2 роки тому

      @@LaurenceSvekisCourses Thank you sir, goin to try that method.

  • @ritikaprajapati8729
    @ritikaprajapati8729 2 роки тому +1

    i want to add multiple sheets in dropdown dynamically use googlesheet api plz help me

    • @LaurenceSvekisCourses
      @LaurenceSvekisCourses  2 роки тому

      You can select the sheets using getSheets() and then use an array to build the object for the drop down.

    • @ritikaprajapati8729
      @ritikaprajapati8729 2 роки тому

      @@LaurenceSvekisCourses thanks and great tutorials @Laurence Svekis :-)😀

    • @ritikaprajapati8729
      @ritikaprajapati8729 2 роки тому

      @Emotional Shayari yes

  • @JDTekno
    @JDTekno 2 роки тому +1

    sir, is there is any ways to securing api endpoint to avoid user accessing directly to json data from sheet on the web using shared link? for example maybe like php auth..

    • @LaurenceSvekisCourses
      @LaurenceSvekisCourses  2 роки тому +1

      No its shared with the Get method, although you can use a script login to your Google account, You can also use backend code to make the requests and return the data within you own PHP output

    • @JDTekno
      @JDTekno 2 роки тому

      @@LaurenceSvekisCourses yes, but when some user login and doing inspect element, then shared link spreadsheet can easily accesible..
      not to worry if not a credential data..But will be bad if the fetch url are containing username or users password..

  • @MatheusSilva-qm3ph
    @MatheusSilva-qm3ph 2 роки тому +1

    Is it possible to make a crud without using api? Thanks

    • @LaurenceSvekisCourses
      @LaurenceSvekisCourses  2 роки тому

      Apps Script only support doPost() and doGet() methods, although you can send additional parameters to post for other methods.

  • @zerokelvin79
    @zerokelvin79 2 роки тому +1

    U didn't show how to get the data of different sheet... I mean how to get the data of 2nd sheet by sheet name.

    • @LaurenceSvekisCourses
      @LaurenceSvekisCourses  2 роки тому +1

      You can select the sheet or the entire workbook in the web publish options

    • @Kagmajn
      @Kagmajn 2 роки тому +1

      after ${query1} (which is "/gviz/tq"), you can add "?gid=SHEET_ID" you can see gid in google sheets URL on current selected sheet) now you get data from the other sheet. So final is like this: endpoint/gviz/tq?gid=123123123 (source now is Sheet2)

  • @SatishKumarN-pt5ww
    @SatishKumarN-pt5ww 2 роки тому

    Please guide me on how to generate Json callback url for any google sheet. Which will be used in angular js.

    • @LaurenceSvekisCourses
      @LaurenceSvekisCourses  2 роки тому

      The endpoint URI can be used the same way making the request via angular instead of JavaScript

  • @tazulislam2698
    @tazulislam2698 2 роки тому +1

    how to write and update please sir!

  • @surinderpanwar9049
    @surinderpanwar9049 2 роки тому

    i m using character and instead of digits, please help me

    • @LaurenceSvekisCourses
      @LaurenceSvekisCourses  2 роки тому

      Its the same for any data. The cells share the content

    • @surinderpanwar9049
      @surinderpanwar9049 2 роки тому

      @@LaurenceSvekisCourses thanks problem is fixed , after deleting extra empty cells , but Laurence , if i m entry Date in cell its changed data into 0.62 something. your help is really appreciated.. thanks man you are legend.

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

    Жалко, что не на русском.

  • @benm3810
    @benm3810 Рік тому

    Thanks for this! I followed all your instructions but keep receiving the following error in console. Any ideas on how to fix it?
    Uncaught (in promise) SyntaxError: Unexpected token '/', "/*O_o*/
    go"... is not valid JSON
    at JSON.parse ()
    at app.js:21:19

    • @LaurenceSvekisCourses
      @LaurenceSvekisCourses  Рік тому

      There is an issue with the JSON format, its likely not a JSON data file that is returned