Google Sheets and PHP

Поділитися
Вставка
  • Опубліковано 3 гру 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 UA-cam, you can argue with your keyboard.

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

  • @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!

  • @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.

  • @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.

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

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

  • @даня-ы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 😀

  • @debaterg
    @debaterg 4 роки тому

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

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

    Big thanks for this great short guide!

  • @newborn7850
    @newborn7850 4 роки тому

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

  • @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!

  • @NicopolSpirit
    @NicopolSpirit 5 років тому +5

    Thats was first video that really helped! Thnx!

    • @twilio
      @twilio  5 років тому

      Glad we could help! Thanks for watching 😀

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

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

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

      did you find a solution? same problem here

  • @antonitobing
    @antonitobing 3 роки тому

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

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

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

  • @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.

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

  • @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.

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

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

    Like like like! Just awesome! Thank you!

  • @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!

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

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

  • @e-learnpro1561
    @e-learnpro1561 4 роки тому +1

    Many Many Thank's Video helped a lot

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

    Thank you very much, you helped me a lot!

    • @twilio
      @twilio  3 роки тому

      Glad I could help!

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

  • @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!

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

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

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

  • @ayyosefo
    @ayyosefo 4 роки тому

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

  • @AbhishekKumar-yr5eo
    @AbhishekKumar-yr5eo 4 роки тому +1

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

  • @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.

  • @XavierLanglois
    @XavierLanglois 3 роки тому

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

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

    Json file is not installed

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

    why didn't you post your code?

  • @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.

  • @kornelijekovac9793
    @kornelijekovac9793 19 днів тому

    How do you install this without that composer?

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

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

    very nice. thank you

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

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

  • @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.

  • @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"} []

  • @tomatomov9061
    @tomatomov9061 4 роки тому

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

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

  • @pablodeoliveira5142
    @pablodeoliveira5142 5 років тому

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

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

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

  • @koala1976
    @koala1976 4 роки тому +1

    youre the best thank you...

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

    Composer can not find files any idea's?

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

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

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

  • @ased4u
    @ased4u 4 роки тому

    Really good video. Thank you!

  • @JickLibot
    @JickLibot 4 роки тому

    Thank you very much, you saved my day!

  • @mikegonzalez4092
    @mikegonzalez4092 5 років тому +1

    man youre my hero :D thanks!

    • @twilio
      @twilio  5 років тому

      Glad we could help!

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

    Can you do this without using Composer?

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

  • @alexorochiCC
    @alexorochiCC 5 років тому +1

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

    • @twilio
      @twilio  5 років тому

      Thanks for watching and for the sub!

  • @AliRaza77
    @AliRaza77 4 роки тому

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

  • @aumaritsakhon129
    @aumaritsakhon129 5 років тому

    Hello Can we make search in a sheet on php?

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

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

    Hello, Where can i find credentials.json file?

  • @diegolopez9851
    @diegolopez9851 3 роки тому

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

  • @amitpathry3118
    @amitpathry3118 3 роки тому

    any link to the written code?

  • @franciscoroa6876
    @franciscoroa6876 4 роки тому

    this is awesome man ! thanks!

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

  • @Priyankmotivaras
    @Priyankmotivaras 4 роки тому

    Thanks ,Worked for me

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

  • @PaulWhiskey
    @PaulWhiskey 4 роки тому

    Thanks you so much!! Is excelent, thank you

  • @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.

  • @Abphaiboon
    @Abphaiboon 5 років тому

    This video helped alot! thanks!

    • @twilio
      @twilio  5 років тому

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

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

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

  • @SkyWalker-v1m
    @SkyWalker-v1m 2 місяці тому

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

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

  • @geeksy2278
    @geeksy2278 5 років тому +1

    Awesome thank you!!!

    • @twilio
      @twilio  5 років тому

      You're welcome, thanks for watching!

  • @micaelbao
    @micaelbao 3 роки тому

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

  • @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.

  • @hanibioud
    @hanibioud 3 роки тому

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

  • @ottomanempire3746
    @ottomanempire3746 3 роки тому

    you should give a link to your code you have used

  • @anhnampham3929
    @anhnampham3929 5 років тому

    how to delete rows or columns

  • @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.

  • @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.

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

  • @ashishbansal2867
    @ashishbansal2867 3 роки тому

    how to add comments into cell. no code found

  • @CaboMusicEletro
    @CaboMusicEletro 3 роки тому

    BEST VIDEO EVER S2

  • @walney2008
    @walney2008 4 роки тому +1

    download script ? tnhks im from Brasil,

  • @rizkyaidiladha9360
    @rizkyaidiladha9360 3 роки тому

    Thank you

  • @ComputerScienceMaster
    @ComputerScienceMaster 4 роки тому

    Muito bom tutorial... adorei.

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

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

  • @ДмитрийВасилевский-д6о

    THANKS! GOOD MAN!

  • @honoremwiseneza2970
    @honoremwiseneza2970 4 роки тому

    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"
    }

    • @honoremwiseneza2970
      @honoremwiseneza2970 4 роки тому

      kindly guide me I am blocked

    • @twilio
      @twilio  4 роки тому

      I’m going to need more information than that to be able to help. What have you tried to fetch? What line of code is throwing this error?

    • @honoremwiseneza2970
      @honoremwiseneza2970 4 роки тому

      @@twilio $response =$service->spreadsheets_values->get($spreadsheetId, $range);

    • @kendouciabdelaliilyas
      @kendouciabdelaliilyas 4 роки тому

      @@honoremwiseneza2970 Please did you find the solution ?

    • @honoremwiseneza2067
      @honoremwiseneza2067 4 роки тому

      @@kendouciabdelaliilyas No I didn't

  • @vitaliimolnar9620
    @vitaliimolnar9620 5 років тому

    Thanks a lot!

  • @nomadtrails
    @nomadtrails 3 роки тому

    This is out of date. Service accounts don't have json exports evidently.

  • @newborn7850
    @newborn7850 4 роки тому

    is google API free?