Google Sheets and PHP

Поделиться
HTML-код
  • Опубликовано: 28 ноя 2024

Комментарии • 181

  • @twilio
    @twilio  5 лет назад +15

    Now that you know how to use Google Sheets with PHP, what will you build?

    • @oguz-kagan
      @oguz-kagan 5 лет назад

      can i use in web?(i am really beginner :) )

    • @twilio
      @twilio  5 лет назад

      @@oguz-kagan Absolutely! You could definitely use this in a web project.

    • @netboy1102
      @netboy1102 5 лет назад

      good tourtorial, but for me is that bit difficult to write my php for a taxifare calculator

    • @maximusTVfull
      @maximusTVfull 5 лет назад

      How could I get row by a specific value, for example, token or id?

    • @RajPatel-uh9nd
      @RajPatel-uh9nd 5 лет назад

      @@twilio Hi, First of all Thank you so much for this awesome video. I have one question, at 5:15 you are talking about updating E2 and F2 (Two Rows) but how can I update E2 and E3 (Two Columns). Can you guide me? Thanks.

  • @chrismuiruri
    @chrismuiruri 4 года назад +4

    This is by far one of the BEST tutorials on RUclips, you can argue with your keyboard.

  • @12centuries
    @12centuries 5 лет назад +25

    This is literally the greatest video in existence. Perfectly done, right to the point and covered all bases. Stanley Kubrick could learn a thing or two from you guys. Thanks for the great info!

    • @twilio
      @twilio  5 лет назад +1

      Thanks for watching and for the kind words!

  • @anaskanhouch478
    @anaskanhouch478 5 лет назад +1

    tried to read different online tutorials and following documentation and their code on Github and couldn't find what I want, so I decide to watch this video as last try.
    You explanation is clear, structured, organized, beyond what I wanted and expected. thanks a lot

  • @ujirooduokpe8243
    @ujirooduokpe8243 3 года назад +1

    Thank you for all that you do. In fact, google should recommend this video as their official documentation. It's much easier to understand than the gibberish they wrote on their official page. You're just the best. You've saved me a lot of time.

  • @arunvr1608
    @arunvr1608 5 лет назад +6

    Thank you! Probably the best done video tutorial. Clear, concise, perfect speed. Right amount of content & explanation

    • @twilio
      @twilio  5 лет назад

      Thanks for watching and for the kind words. Hope it helped!

    • @darthleonard
      @darthleonard 5 лет назад

      I agree

  • @vladagrigoroae1767
    @vladagrigoroae1767 3 года назад +7

    amazing tutorial, thanks, 8 minutes and you're on handling google sheets from PHP. Since the tutorial was written google console changed a bit in the fact that the JSON file will no longer be given to you at the completion of the config screen as in the video, you need to go under keys -> create -> and then download the credentials file.

  • @даня-ы3б2к
    @даня-ы3б2к 5 лет назад +6

    I just finished my project in time thanks to your video. You saved me so much time. Thank you man. I mean it

    • @twilio
      @twilio  5 лет назад

      I’m glad we could help!

  • @xCalecax
    @xCalecax 3 года назад +1

    I don't usually comment on videos. But this one really did it for me. Just perfect! Deserves more views!

    • @twilio
      @twilio  3 года назад +1

      Thanks for watching! Glad it was helpful 😀

  • @Franzisss_001
    @Franzisss_001 4 года назад +4

    i have a problem at 5:00, i have this error: PHP Fatal error: Uncaught GuzzleHttp\Exception\RequestException: cURL error 60: SSL certificate problem: unable to get local issuer certificate can you help me pls??

  • @toriskin
    @toriskin 3 года назад +1

    Big thanks for this great short guide!

  • @debaterg
    @debaterg 4 года назад

    this is actually better than the google documentation, which forgot to mention that the $insert parameter is needed.

  • @acidfather
    @acidfather 11 месяцев назад +1

    I did all that and after I try to run it to read the data from spreadsheet I got
    Fatal error: Uncaught Google\Service\Exception: { "error": { "code": 404, "message": "Requested entity was not found.", "errors": [ { "message": "Requested entity was not found.", "domain": "global", "reason": "notFound" } ], "status": "NOT_FOUND" } }

    • @lucku0
      @lucku0 4 месяца назад

      did you find a solution? same problem here

  • @onebitrocket
    @onebitrocket 5 лет назад +3

    This was so helpful. I was running into issues on private shared drives with the v3 sheets api.
    Thanks 👏👏

    • @twilio
      @twilio  5 лет назад

      Glad we could help!

  • @NickBaer-gu5mb
    @NickBaer-gu5mb 11 месяцев назад

    This is 4 years old. A package I paid to have installed i 2019, died today "Token Expired or Revoked". Doesn't anything last?

  • @cooldown6337
    @cooldown6337 2 года назад +1

    what if i can't install composer and use ssh terminal?

  • @NicopolSpirit
    @NicopolSpirit 5 лет назад +5

    Thats was first video that really helped! Thnx!

    • @twilio
      @twilio  5 лет назад

      Glad we could help! Thanks for watching 😀

  • @antonitobing
    @antonitobing 3 года назад

    Best tutorial, the pace is perfect for dummy like me, many thanks

  • @cpukid00
    @cpukid00 3 года назад

    This video has been so awesome in getting me going with the PHP library, so thank you for all of the information! That said, I have a question.
    In the first example where we're simply trying to get some cells from the sheet, you call the 'GetValues()' function. In trying to use this knowledge to do other things with different API's (Drive and Photos, for example), I can't seem to use this. In my file system (within the PHP library), I'm trying to understand exactly where this 'GetValues()' method is defined, and what I would instead use in other API's. Can you offer any insight here? Thanks for your time and for the great content!

  • @hanibioud
    @hanibioud 2 года назад

    Hey! I'm adding rows in Google Sheets and would love to check if all data from PHP database has been successfully been added into Google Sheet by searching one by one via the ID.

  • @johnboy4809
    @johnboy4809 2 года назад

    Great video but has there been a change in creating credentials since this video as I do not get asked the same questions and cant get a json file

  • @HD-qc5vv
    @HD-qc5vv 5 лет назад

    Where did the black screen come from?
    From where I can access it

    • @twilio
      @twilio  5 лет назад

      Are you using Windows or Mac? This is a terminal emulator window. On a Mac you would use an app called Terminal. On Windows you can use either Command Prompt or Powershell.

  • @matheusaugus9855
    @matheusaugus9855 2 года назад

    witch color theme do you use ? could you send it to me i really like yours ?

  • @candreadiazs
    @candreadiazs 3 года назад +1

    Muchas gracias por compartir tus conocimientos. Que gran video!!

  • @JK-pr3lu
    @JK-pr3lu Год назад

    Thanks for the tutorial. It sounds so simple... I wish it was easier. I have no knowledge of running things in the terminal. It would be helpful if you could make the commands you use available for copy/pasting

  • @kornelijekovac9793
    @kornelijekovac9793 14 дней назад

    How do you install this without that composer?

  • @YuriiKosiak
    @YuriiKosiak 3 года назад +1

    Like like like! Just awesome! Thank you!

  • @jjasonryszka6267
    @jjasonryszka6267 4 года назад +1

    Thank you so much. Great tutorial. So much time saved.

    • @twilio
      @twilio  4 года назад

      Thanks for watching! I’m glad we could help you.

  • @Nguyen-go2vw
    @Nguyen-go2vw 5 лет назад +2

    Sorry, but what can I run composer command with? It isn't cmd, right?

    • @twilio
      @twilio  5 лет назад +1

      If you are on Windows, there's a full guide on installing PHP (including composer) here: www.jeffgeerling.com/blog/2018/installing-php-7-and-composer-on-windows-10

  • @armanmargaryan6883
    @armanmargaryan6883 Год назад

    Thank you very much, it's very simple and very useful!

  • @faisalzubair5065
    @faisalzubair5065 2 года назад

    @Twilio Great video but how can we do that with C#?

  • @Allformyequine
    @Allformyequine Год назад

    Can you do this without using Composer?

  • @evgenyvorontsov3526
    @evgenyvorontsov3526 3 года назад

    Guys, it works locally, but I get error email 'Domain name not found' when deploying and it ends for me there. The funny thing is that I can't find any thread to look up what might be the issue.

  • @newborn7850
    @newborn7850 4 года назад

    from where did u got the interface @0:14, i mean what is api, how to install ?

  • @XavierLanglois
    @XavierLanglois 3 года назад

    perfect. thanks ! I use it to generate ad scripts for my websites

  • @JaehoonMe
    @JaehoonMe 3 года назад +1

    Thank you very much, you helped me a lot!

    • @twilio
      @twilio  3 года назад

      Glad I could help!

  • @e-learnpro1561
    @e-learnpro1561 4 года назад +1

    Many Many Thank's Video helped a lot

  • @Dvoini
    @Dvoini 3 года назад +1

    why didn't you post your code?

  • @joekustek2623
    @joekustek2623 Год назад

    Composer can not find files any idea's?

  • @AbhishekKumar-yr5eo
    @AbhishekKumar-yr5eo 4 года назад +1

    This is really great tutorial sir, Thank you so much @Twilio

  • @adrianzubir7007
    @adrianzubir7007 4 года назад

    #ASK can i append random size of row to the upper of the table, so the row that build before, move to the bottom of new append row?

  • @programming_with_zahid
    @programming_with_zahid 3 года назад

    would u like to tell how to get all lists of google sheet with their name and id using php? i can see you have put hard coded google sheet id so i need it dynamic please

  • @elmsroth8850
    @elmsroth8850 4 года назад

    So simple and straigth forward ! Just what I needed, thanks a lot !
    How can you search a row based on a cell value ?

  • @tusharvaghasiya3156
    @tusharvaghasiya3156 4 года назад

    Very good Sir, I really like this video. very helpful. Thank you very much.

  • @santiagovalenzuela6651
    @santiagovalenzuela6651 5 лет назад

    Hi I'm getting some errors with the "autoload.php". I received error with "guzzlehttp". I think that I have too much libraries declare with composer.
    Did you know how I could create that file again without those libraries?
    Thanks!

  • @gokulr8924
    @gokulr8924 3 года назад +1

    Json file is not installed

  • @ayyosefo
    @ayyosefo 4 года назад

    Hi, this works great locally but when pushed live, I am receiving a 500 error "an unknown error occurred".

  • @faisalzubair5065
    @faisalzubair5065 2 года назад

    Great video but how can we do that with C#?

  • @Mr_MadZac
    @Mr_MadZac 4 года назад

    How can make it work the next function?:
    My spreadsheet is bonded with a google form wich every day is inserting new rows with a lot of data, but, there is a column wich is blank because i need to insert a verification value (maybe just like "Ok" or "this person asist the citation") in that column for every row that is inserted but i need to insert that verification value via another html form, but i dont know how to do it, because i need to put the Date when that person fillls the main form and the ID of that person and then specify to the php to insert that verification value only in the cell wich is in the same row with the Date and the ID that i put in the verification form, anyone can guide me here?

  • @rachidimohamed6640
    @rachidimohamed6640 2 года назад

    i did the same as you did but $this->service->spreadsheets_values->get($this->documentId, $this->range); giving me this error : array_key_exists(): Argument #2 ($array) must be of type array, null given

  • @przemyslawidzczak5268
    @przemyslawidzczak5268 4 года назад

    Hey, do you have an solution for filtering? I mean I want to get values like this but string value in let's say 3rd column must be exactly "X". I can't find any solution for this

    • @twilio
      @twilio  4 года назад

      The data sets I’ve worked with using this have been small enough that I’ve just done filtering locally. I’m also having a hard time finding how to do it in the API. Seems like a simple feature.
      There’s developers.google.com/sheets/api/reference/rest/v4/spreadsheets/getByDataFilter but it doesn’t seem to do what we want.

  • @micaelbao
    @micaelbao 3 года назад

    Why does my quickstart fail? Google's document is worse than instructions from users? you are great, thank you so much

  • @tomatomov9061
    @tomatomov9061 4 года назад

    Why I dont have client_email in my credentials file? I don't get it.

  • @ased4u
    @ased4u 4 года назад

    Really good video. Thank you!

  • @subjectfrank
    @subjectfrank Год назад

    Hello, Where can i find credentials.json file?

  • @aumaritsakhon129
    @aumaritsakhon129 5 лет назад

    Hello Can we make search in a sheet on php?

  • @amitpathry3118
    @amitpathry3118 3 года назад

    any link to the written code?

  • @favorevole
    @favorevole 5 лет назад

    What program do you use for PHP editing? It's really nice.

    • @ftapia
      @ftapia 5 лет назад

      seems like visual studio code

    • @redhotmustang
      @redhotmustang 5 лет назад

      Visual Studio Code, he says so in the video @ 1:17

    • @twilio
      @twilio  5 лет назад

      Yep, VS Code.

    • @favorevole
      @favorevole 5 лет назад +1

      Thank you guys

  • @SkyWalker-v1m
    @SkyWalker-v1m 2 месяца назад

    I wasn't able to get further...needs OAuth 2.0

  • @supplier409jualharga3
    @supplier409jualharga3 3 года назад +1

    very nice. thank you

  • @AliRaza77
    @AliRaza77 4 года назад

    I think google should hire you for the documentation and product's demo engineer.

  • @testbatch1141
    @testbatch1141 4 года назад +1

    I follow your tutorials. And i can run the code in local server. But when i run it with live server, it shows error 500 in console. Why this happen?

    • @ayyosefo
      @ayyosefo 4 года назад

      Same here! Did you ever figure it out?

    • @testbatch1141
      @testbatch1141 4 года назад +1

      @@ayyosefo yup. its the case sensitive in the code

    • @ayyosefo
      @ayyosefo 4 года назад

      test batch1 thanks! What exactly was case sensitive that was breaking live but not local? Is it the insert values? I appreciate your help

  • @pablodeoliveira5142
    @pablodeoliveira5142 5 лет назад

    Life saver! :D Thank you so much for the video

  • @alexorochiCC
    @alexorochiCC 5 лет назад +1

    Thanks, this is so good. You won a new suscriptor

    • @twilio
      @twilio  5 лет назад

      Thanks for watching and for the sub!

  • @diegolopez9851
    @diegolopez9851 3 года назад

    i'm try to use it on a cpanel hosted server but it does not work. why?

  • @ottomanempire3746
    @ottomanempire3746 3 года назад

    you should give a link to your code you have used

  • @merajali938
    @merajali938 4 года назад

    @twilio, firstly thank you for the great concept, have been implementing it i'm stuck at this error, trying them out, can you please help me out here, I'm trying to Read and Update(mandatory) the Data in the GoogleSheet using API with PHP
    Here is the error,
    Fatal error: Uncaught Google_Service_Exception: { "error": { "code": 403, "message": "The request is missing a valid API key.", "errors": [ { "message": "The request is missing a valid API key.", "domain": "global", "reason": "forbidden" } ], "status": "PERMISSION_DENIED" } } in C:\xampp\htdocs\ww\googleapiconnector\vendor\google\apiclient\src\Google\Http\REST.php:118 Stack trace: #0 C:\xampp\htdocs\ww\googleapiconnector\vendor\google\apiclient\src\Google\Http\REST.php(94): Google_Http_REST::decodeHttpResponse(Object(GuzzleHttp\Psr7\Response), Object(GuzzleHttp\Psr7\Request), 'Google_Service_...') #1 C:\xampp\htdocs\ww\googleapiconnector\vendor\google\apiclient\src\Google\Task\Runner.php(181): Google_Http_REST::doExecute(Object(GuzzleHttp\Client), Object(GuzzleHttp\Psr7\Request), 'Google_Service_...') #2 C:\xampp\htdocs\ww\googleapiconnector\vendor\google\apiclient\src\Google\Http\REST.php(58): Google_Task_Runner->run() #3 C:\xampp\htdocs\ww\googleapiconnector\v in C:\xampp\htdocs\ww\googleapiconnector\vendor\google\apiclient\src\Google\Http\REST.php on line 118

  • @JickLibot
    @JickLibot 4 года назад

    Thank you very much, you saved my day!

  • @GetTechidea
    @GetTechidea 5 лет назад

    how can i create a new google sheet as i want to export table data as google sheet ?

    • @twilio
      @twilio  5 лет назад

      I think you will need to use the Google Drive API to do this.

  • @arbysixteen4116
    @arbysixteen4116 5 лет назад +1

    hi! what is the name of the application at 1.03-1.15 ??

    • @twilio
      @twilio  5 лет назад +1

      It's iTerm 2 for the Mac.

    • @jaypatel1809
      @jaypatel1809 4 года назад

      How to install in localserver with xampp in windows?

  • @elierakotonomenjanahary2150
    @elierakotonomenjanahary2150 3 года назад

    Thanks. But i got error : google-api-php-client.ERROR: Service parameter missing {"service":"sheets","resource":"values","method":"get","p
    arameter":"spreadsheetId"} []

  • @koala1976
    @koala1976 4 года назад +1

    youre the best thank you...

  • @mariavillanueva9576
    @mariavillanueva9576 4 года назад

    How do you implement a workaround for 'too many request' with error code 429 aside from upgrading the account?

    • @twilio
      @twilio  4 года назад +1

      You are probably hitting the rate limit for the API. It’s possible you might just need to slow down the speed at which you are making requests to the API.

    • @mariavillanueva9576
      @mariavillanueva9576 4 года назад

      @@twilio we are actually hitting the limit because we have a lot of users triggering the API, but I need to do some workaround about it. hmmm

  • @mikegonzalez4092
    @mikegonzalez4092 5 лет назад +1

    man youre my hero :D thanks!

    • @twilio
      @twilio  5 лет назад

      Glad we could help!

  • @datbui8995
    @datbui8995 5 лет назад

    Thanks you sooooooo much. I tried Quick Start Tutorial of Google but it not work for append data. I started slowly. The tutorial of GG is not good enough for ' A real Quick Start' , but your video is. Thank bro

  • @nicolaspistillo6322
    @nicolaspistillo6322 3 года назад

    where i con found the credentials.json?

    • @twilio
      @twilio  3 года назад

      The credentials file is something you download from the Google Cloud console in the last step of setting up the API project shown in the video.

  • @RajPatel-uh9nd
    @RajPatel-uh9nd 5 лет назад

    Hi, First of all Thank you so much for this awesome video. I have one question, at 5:15 you are talking about updating E2 and F2 (Two Rows) but how can I update E2 and E3 (Two Columns). Can you guide me? Thanks.

    • @rsturks
      @rsturks 5 лет назад +1

      E and F are columns. He is updating first name and last name in one row (row 2).

    • @RajPatel-uh9nd
      @RajPatel-uh9nd 5 лет назад

      @@rsturks Ya I know but my question is how to update two first name or two last name?

  • @franciscoroa6876
    @franciscoroa6876 4 года назад

    this is awesome man ! thanks!

  • @kurdtpage
    @kurdtpage 5 лет назад +1

    Why are you using "print"? Why not "echo"?

    • @twilio
      @twilio  5 лет назад

      I did use echo. First I formatted the string with sprintf (www.php.net/manual/en/function.sprintf.php) and then used echo.

  • @macare-engineering8379
    @macare-engineering8379 4 года назад

    I wanna know is the credentials service account is a lifetime or would be expired?

    • @twilio
      @twilio  4 года назад

      As far as I know the service account does not expire.

    • @macare-engineering8379
      @macare-engineering8379 4 года назад

      @@twilio Well, when you go to google developer console ->Credentials you will see "Usage with all services(last 30 days)" beside Service Accounts. What's that mean?

    • @twilio
      @twilio  4 года назад

      @@macare-engineering8379 That's showing you how many times the Service Account has been used to make an API call in the past 30 days.

  • @ashishbansal2867
    @ashishbansal2867 3 года назад

    how to add comments into cell. no code found

  • @PaulWhiskey
    @PaulWhiskey 4 года назад

    Thanks you so much!! Is excelent, thank you

  • @Priyankmotivaras
    @Priyankmotivaras 4 года назад

    Thanks ,Worked for me

  • @anhnampham3929
    @anhnampham3929 5 лет назад

    how to delete rows or columns

  • @zahirzohair1372
    @zahirzohair1372 3 года назад

    Thanks for this great video. it works perfectly locally but when i upload my project on server it does not work. is there anyone who have same issue? thanks

  • @juansalvadorrodriguezluna9580
    @juansalvadorrodriguezluna9580 5 лет назад

    Hello, the video helped me to understand the API, but it marks the following error: Uncaught Error: Class 'Google_Services_Sheets', Could you help? please.

    • @twilio
      @twilio  5 лет назад

      Hit me up on Twitter @GeeH and I'll give you some help ^G

  • @Abphaiboon
    @Abphaiboon 5 лет назад

    This video helped alot! thanks!

    • @twilio
      @twilio  5 лет назад

      We're glad you found it useful, thanks for watching!

  • @hanibioud
    @hanibioud 3 года назад

    Dude, i'm getting Warning: count(): Parameter must be an array or an object that implements Countable..

  • @ComputerScienceMaster
    @ComputerScienceMaster 4 года назад

    Muito bom tutorial... adorei.

  • @geeksy2278
    @geeksy2278 5 лет назад +1

    Awesome thank you!!!

    • @twilio
      @twilio  5 лет назад

      You're welcome, thanks for watching!

  • @walney2008
    @walney2008 4 года назад +1

    download script ? tnhks im from Brasil,

  • @Shkur777
    @Shkur777 4 года назад

    More easy than in 2010

  • @rizkyaidiladha9360
    @rizkyaidiladha9360 3 года назад

    Thank you

  • @newborn7850
    @newborn7850 4 года назад

    is google API free?

  • @kaipro98hii67
    @kaipro98hii67 5 лет назад +1

    how to run composer at 1:05

    • @twilio
      @twilio  5 лет назад

      Compose is a dependency manager for PHP - you can find out more and install it at getcomposer.org

    • @OsielyMendezpluskids
      @OsielyMendezpluskids 4 года назад

      @@twilio I expected a better response I got stuck at the same exact place where it says "inside my project directory I will use composer" but you skipped to show what you did to launch composer and it does not appear in the video but only shows the composer already being used. I do not know what know how to locate the project directory or where the composer is located within my windows 10. The whole point of a tutorial is to show us exactly how to do it not go read it somewhere as some of us are visual learners only. Can you send me the video of that part that was removed.

  • @CaboMusicEletro
    @CaboMusicEletro 3 года назад

    BEST VIDEO EVER S2

  • @kumardeepak3380
    @kumardeepak3380 4 года назад

    I am getting exception error, please help me

    • @twilio
      @twilio  4 года назад

      Hi! Need more info than that to be able to help. What’s the error message you’re getting?

  • @allansetsuki
    @allansetsuki 5 лет назад

    Thank you so much

    • @twilio
      @twilio  5 лет назад

      You’re welcome!

  • @vitaliimolnar9620
    @vitaliimolnar9620 5 лет назад

    Thanks a lot!

  • @atnewsnet
    @atnewsnet 4 года назад

    github?