ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก

How To Use The Google Calendar API with NodeJS: A Step-by-Step Guide

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 มี.ค. 2020
  • 🙌 Don't forget to Like & Subscribe 🙌
    ✋ Need Truly Wireless Headphones? ✋
    ------------------------------------------------------------------
    The SoundPEATS True Wireless Earbuds are a great budget set of headphones. I use them and love them. Help support the channel and check them out at the link below.
    Amazon Affiliate Link: amzn.to/2SAw6TX
    🎬 Video Description 🎬
    In this video, we will be integrating the google calendar API into a NodeJS application. We will be using oAuth2 to authenticate and the "googleapis" node package to interact with the calendar API. if you have any questions don't be afraid to ask...
    Github Repo
    github.com/CamSkiTheDev/Googl...
    Join The Community Slack Channel - bit.ly/2m6erHn
    ⚙️ My Video/Audio Gear ⚙️
    Blue Yeti Blackout USB Microphone
    amzn.to/2ZfwVqT
    NEEWER Adjustable Microphone Boom Arm
    amzn.to/2KWy5yD
    Professional Microphone Pop Filter
    amzn.to/31SU1Br
    Audio-Technica ATH-M30x Professional Studio Monitor Headphones
    amzn.to/2KNfRAR
    Canon EOS M50 Mirrorless Camera
    amzn.to/2HfZ8E3
    Rode VideoMicro Compact On-Camera Microphone
    amzn.to/2HiRvwB
    K&F Concept 62'' DSLR Tripod
    amzn.to/2zbLqNT
    HPUSN Softbox Lighting Kit
    amzn.to/2Zcoglf
    White Balance Grey Card
    amzn.to/31TIUZ3
    Anker 4-Port USB 3.0 Hub
    amzn.to/31WJnd3
    Kingston Digital USB 3.0 Portable Card Reader
    amzn.to/2ZgQQSj
    Nulaxy Adjustable Laptop Stand
    amzn.to/2TPU4v4
    ASUS VivoBook F510UA
    amzn.to/31LBnLI

ความคิดเห็น • 133

  • @luisangelguzman2335
    @luisangelguzman2335 2 ปีที่แล้ว +8

    Hey man, just wanted to let you know that this helped me a TON, I recently got started with Node and I'm really excited to try this. The tutorial was super useful, Thanks!

  • @alejandrocoronado1131
    @alejandrocoronado1131 2 ปีที่แล้ว +3

    Man this is super cool I finally made what I wanted to do, I search through hundreds of tutorials, and this is the only one that worked for me. I own you a beer

  • @agentxx3022
    @agentxx3022 2 ปีที่แล้ว +9

    I can only imagine how many hours of work you just saved me.
    Bravo sir, you are a true hero.

  • @davidsonfong9549
    @davidsonfong9549 2 ปีที่แล้ว

    HOLY S#*T!!! I’ve been searching for this. This video is about two years old as I’m writing this and so half of this info might be deprecated by now. But thank you for this awesome demonstration! This is AWESOME!

  • @gamerlte4887
    @gamerlte4887 4 ปีที่แล้ว

    I saw a numbnut downvoted this video, so I logged into youtube to upvote it - good work, appreciate it

  • @Juan.Jose.Jaramillo
    @Juan.Jose.Jaramillo 4 ปีที่แล้ว +3

    Thank you so much for your video it was very helpful for me and my project :D! Big thumbs up!!

  • @faizansaleem4423
    @faizansaleem4423 4 ปีที่แล้ว +1

    Good Job! Keep up this good work in this pandemic situation and IGNORE negativeness. I support ya!!!!!!!!

  • @psyclobe
    @psyclobe 4 ปีที่แล้ว +4

    Thank you very much this really helped me bootstrap some code, the instructions on googles sample site leave much to be desired in terms of the oath flow to people who aren't in that space

  • @Riku3c
    @Riku3c 2 ปีที่แล้ว

    Great tutorial, helped me a lot with CURD I was building in TS with the calendar integration.

  • @21rogerwaters
    @21rogerwaters 3 หลายเดือนก่อน

    Pretty helpful. Thank you Cameron! 🙏

  • @BlueyMcPhluey
    @BlueyMcPhluey 4 ปีที่แล้ว +1

    thanks for the tip about the oauthplayground, I wasn't able to copy and paste the code in the URL for some reason and it worked when I used that

  • @HiyaloTechnologies
    @HiyaloTechnologies ปีที่แล้ว

    For real... you made it seem extremely easy.... Thank you so so so much
    Just Subscribed

  • @lucasmoreirapontocom
    @lucasmoreirapontocom 2 ปีที่แล้ว +2

    Awesome tutorial! Still working in 2022. Thank you!

  • @kengjunxian812
    @kengjunxian812 3 ปีที่แล้ว +22

    HEY!! Just wanted to share that setting up automated calendar invites to clients was my first task as a developer intern, and this video saved my life! Thanks a million!

    • @musayazid4806
      @musayazid4806 2 ปีที่แล้ว

      me too

    • @davidsonfong9549
      @davidsonfong9549 2 ปีที่แล้ว

      heck yeah! Hope you’re still crushing it, Keng!

    • @princepritam71
      @princepritam71 ปีที่แล้ว

      I am assigned a similar thing bro. Related to internship only

  • @sethmarcus1784
    @sethmarcus1784 3 ปีที่แล้ว

    It gave me enough to be able to understand/read the official documentation

  • @MsRaveny
    @MsRaveny 3 ปีที่แล้ว

    Thank You, You are save my life and future too, i dont understand google make that but not have tutorial like you, is graceful

  • @saandial3412
    @saandial3412 4 ปีที่แล้ว +3

    Thank you. Front end tutorial would be great!

  • @billypurdy738
    @billypurdy738 4 ปีที่แล้ว

    You are my hero! I was having trouble with auth too

  • @andresmenchaca7150
    @andresmenchaca7150 3 ปีที่แล้ว

    Perfect video all that i need for my proyect to complement ;) thx Dude!

  • @GiridharDuggirala
    @GiridharDuggirala 3 ปีที่แล้ว

    Very neat.... example, explanation.. I really enjoyed.

  • @hojdog
    @hojdog 4 ปีที่แล้ว

    Thanks, I was struggling with getting past the OAuth. Didn't know you could just click past the 'This app isn't verified' screen. Cheers!

  • @premicesk.9617
    @premicesk.9617 4 ปีที่แล้ว

    You just helped me save a lot of time. Great video

  •  3 ปีที่แล้ว +3

    Hi. I'd just implemented an Firebase Function dealling with the CALENDAR API but wasn't using "freebusy query". It fits perfectly. You didn't mention that at the API documentation you can try the API what it's very useful to understand how it works. I am using an firebase admin acount for access. Thanks a lot...

  • @ndkebedhidwnb11
    @ndkebedhidwnb11 4 ปีที่แล้ว

    Thank you. Your tutorial is better than the google tutorial. this tutorial works

  • @berrec2650
    @berrec2650 ปีที่แล้ว

    Thanks so much, great basic information, principles still relevant today and clearly explained, shame Google cannot present the same information with the clarity you did.

  • @Norfeldt
    @Norfeldt 2 ปีที่แล้ว

    Fantastic! You saved me for so much time!!!

  • @dennisbasyrov7113
    @dennisbasyrov7113 ปีที่แล้ว

    Thanks!) Super helpful -> you made my day

  • @costingexpert3061
    @costingexpert3061 3 ปีที่แล้ว

    indeed what a "LIFE OF A DEV" cool ...keep going!!

  • @tarunkumarjain
    @tarunkumarjain 4 ปีที่แล้ว

    Thanks for this video, really helpful.

  • @SashenMe
    @SashenMe 3 ปีที่แล้ว

    Thank you man, really helpful!

  • @vimala7830
    @vimala7830 2 ปีที่แล้ว

    Thank you so much for this useful video!!!

  • @030du25
    @030du25 3 ปีที่แล้ว

    Thanks dude, very helpful :)

  • @adrianrocafull7408
    @adrianrocafull7408 2 ปีที่แล้ว

    You are the best, thank you so much!!

  • @guilhermecordeiro483
    @guilhermecordeiro483 2 ปีที่แล้ว

    Amazing tutorial! Thanks a lot!!!!!!!!!!!!!!

  • @nat6106
    @nat6106 3 ปีที่แล้ว

    Thanks a lot, that's useful!

  • @yuck59
    @yuck59 3 ปีที่แล้ว +4

    great video but i really wish you included an example of using this with a form

  • @jlambert12013
    @jlambert12013 ปีที่แล้ว

    Thank you so much.

  • @BakersBrainiac
    @BakersBrainiac 2 ปีที่แล้ว

    I have 2 things to say, first this video is so helpful, the second thing is man how wide is your screen 😂 .

  • @investigacionctiespol5315
    @investigacionctiespol5315 2 ปีที่แล้ว

    Excelente tutorial, funciona perfecto!!! Gracias

  • @iam.p3p0
    @iam.p3p0 3 ปีที่แล้ว

    Thanks for your help. Could you make an example integrating NodeJs with a Caldav calendar like Radicale?

  • @HelPfeffer
    @HelPfeffer 2 ปีที่แล้ว

    Great video, thank you

  • @shakurchowdhury8762
    @shakurchowdhury8762 4 ปีที่แล้ว +1

    shukriya. this was helpful.

  • @kennytran5084
    @kennytran5084 ปีที่แล้ว +2

    How would you set it up so that you can send events to other calendars on other google accounts?

  • @kumarvishalben
    @kumarvishalben 3 ปีที่แล้ว

    So informative 👍👍👍⭐⭐⭐⭐⭐⭐

  • @alexandremj2765
    @alexandremj2765 ปีที่แล้ว

    Than you very much

  • @charubhatt2767
    @charubhatt2767 4 ปีที่แล้ว +2

    I was struggling with calendar integration. Thanks for the video. It would be of great help if you could make a video of how to integrate this code with google assistant as in by making use of intents, entities and calling calendar from it.

    • @wisdomcoder
      @wisdomcoder 3 ปีที่แล้ว +1

      In this, the user is manually fetching the refresh token and authorization token which was used in the code. Is there any dynamic way we can add the event to the calendar as soon as user approves to, so user won't have to manually do the task.

  • @maltegb
    @maltegb 3 ปีที่แล้ว +1

    Could you also show how to get all events from the calendar, found nothing in the docs😞

  • @alejandrocoronado1131
    @alejandrocoronado1131 2 ปีที่แล้ว

    thanks bro!

  • @mentoringpokeronline2514
    @mentoringpokeronline2514 3 ปีที่แล้ว

    nice video, how much is an average cost u bill for implement this kinda develop?

  • @anbiabohlam5468
    @anbiabohlam5468 ปีที่แล้ว +2

    Not every hero wears a cape, some are just uploading video without knowing it saved a lot of hours development for other people.
    Really great video sir 👍🏻

  • @parsiaakash3126
    @parsiaakash3126 2 ปีที่แล้ว

    I just wanted to understand by adding the attendees to the whole creation of an event flow

  • @nadeemmansha3559
    @nadeemmansha3559 2 ปีที่แล้ว

    is it possible that we send a mail to user gmail and an event also will create on this user email calendar mean on user calendar..........please help

  • @alfredmadere3572
    @alfredmadere3572 3 ปีที่แล้ว

    How do I find the IDs of my other calendars that are not "primary"? I want to create a special calendar for testing a scheduling app

  • @Himalayanfoodfusion
    @Himalayanfoodfusion 2 ปีที่แล้ว

    how can we share calander with other users in node js

  • @anujjhamb6664
    @anujjhamb6664 4 ปีที่แล้ว +14

    I have a question. Please tell how to extend this so that whoever wishes to add events can do so ( i.e multiple google accounts). I want that users can authenticate themselves and then can proceed

    • @wisdomcoder
      @wisdomcoder 3 ปีที่แล้ว

      In this, the user is manually fetching the refresh token and authorization token which was used in the code. Is there any dynamic way we can add the event to the calendar as soon as user approves to, so user won't have to manually do the task.

  • @nadeemmansha3559
    @nadeemmansha3559 2 ปีที่แล้ว

    we are creating event on single calendar which verify by google console after creating credential .... but what we do if we want to create event to any other user calendar??????????

  • @mephist008
    @mephist008 3 ปีที่แล้ว +1

    If I used your code everything works out fine. However, there is an error in the resource. when I write these down the error "No overload matches this call"
    Do you know why?

  • @wisdomcoder
    @wisdomcoder 3 ปีที่แล้ว

    @The Life Of A Dev Could you please help to access other user's calendar? Like we don't have the account and that user would allow us to edit or view the calendar details.

  • @bouazizhazem290
    @bouazizhazem290 4 ปีที่แล้ว

    Please how can I add my university schedule in google calendar using node ?

  • @waheedahmed6602
    @waheedahmed6602 3 ปีที่แล้ว

    will this work for individual user's calendar sync functionality?

  • @user-jt8sw2bb4y
    @user-jt8sw2bb4y 7 หลายเดือนก่อน

    issues: meeting link generate successful but calendar administrator account without joining meeting other how to join...????

  • @user-jt8sw2bb4y
    @user-jt8sw2bb4y 7 หลายเดือนก่อน

    one issues sir: meeting link generate successful but calendar administrator account without joining meeting other how to join...????

  • @Max14211
    @Max14211 4 ปีที่แล้ว +3

    Spectrum - Take You There (feat. Ria Choony) [PREMIERE]
    if anyone else wanted to know the track.

  • @C0D3O
    @C0D3O 2 ปีที่แล้ว

    I want to run it from my chrome extension in a browser? what should I do to make it work? thank you

  • @nadeemmansha3559
    @nadeemmansha3559 2 ปีที่แล้ว

    can we send a mail to any user gmail and which also create an event on his/her gmail calendar ????????

  • @Smile-to2ii
    @Smile-to2ii 3 ปีที่แล้ว

    I have an issue, I want my user to give the permission from my angular js 8 web application and I get his refresh token and use that for doing the stuff that you just did now.
    How to do that, so a pop up should open and ask for permissions, once permissions granted, then I can a refresh token and can do my job?
    Please help, any documentation?
    Thanks

  • @arunraju4878
    @arunraju4878 ปีที่แล้ว

    What is the timezone for India instead of this America\Denver

  • @user-jt8sw2bb4y
    @user-jt8sw2bb4y 7 หลายเดือนก่อน

    meeting link generate successful but calendar administrator account without joining meeting other how to join...????

  • @dushyantDev99
    @dushyantDev99 2 ปีที่แล้ว

    Will Refresh token keep changing ?

  • @rajkaransingh8305
    @rajkaransingh8305 2 ปีที่แล้ว

    can i l=use this as an npm package and use user auth with google adb create event to the users who is primarily using this package with some commands , basically can we authenticate multiple users in an npm package ?

  • @sycostyleofficial
    @sycostyleofficial 2 ปีที่แล้ว

    Any api to add task instead of event?

  • @jussihailu
    @jussihailu 2 ปีที่แล้ว

    May God bless you

  • @MrMegaFirestarter
    @MrMegaFirestarter ปีที่แล้ว +1

    And even I've got an Auth code and Tokens after all I Have no access - error: 'unauthorized_client'

  • @tech-qq2uw
    @tech-qq2uw 3 ปีที่แล้ว

    i am facing 'You need to have writer access to this calendar' error with calender api when i am using main ac with google work space and calender. can you help me out for that issue? it is working with normal gmail but when i used domain email which is google workspace email then it gives that error

  • @be_b_50_ankitkumar_singh79
    @be_b_50_ankitkumar_singh79 3 ปีที่แล้ว

    Can we load the calendar on our website too?

  • @yifi318
    @yifi318 3 ปีที่แล้ว

    BEST NODEJS GCALENDAR TUTO MERCI. BUT STILL DONT KNOW HOW TO SEEK PERMISSION FOR USERS

  • @GabrielLopez-od3ev
    @GabrielLopez-od3ev ปีที่แล้ว

    Hey! When I combine this with HTML i get the error: "Uncaught ReferenceError: require is not defined". I searched that error and the solutions I can find lead to another errors. Do you have any idea of why is this happening? Thx

  • @rakeshkumarark
    @rakeshkumarark 2 ปีที่แล้ว

    Video was great, but how to add guests

  • @andri21
    @andri21 3 ปีที่แล้ว

    How to create associated event with google meet?

  • @simoanaimi406
    @simoanaimi406 2 ปีที่แล้ว

    Has anyone managed to fix the refresh token expiring every 7 days?

  • @SylDragonia
    @SylDragonia ปีที่แล้ว

    How to get your refresh token directly to your code without using the playground

  • @jocemarvosskovacs3384
    @jocemarvosskovacs3384 4 ปีที่แล้ว

    How can i update or delete events on google calendar with nodejs? Have are you some sample to it?

  • @HelPfeffer
    @HelPfeffer 2 ปีที่แล้ว

    How do you know the id of your calendar?

  • @caiorobertoduarte6740
    @caiorobertoduarte6740 2 ปีที่แล้ว

    I have no idea about what i'm doing wrong. My Url is in the exact same format as in the video but i continue geeting an Error 403: access_denied after i choose my email, anyone can help me out?

  • @Juan.Jose.Jaramillo
    @Juan.Jose.Jaramillo 4 ปีที่แล้ว +1

    A quick question, the refresh token changes, is there a way to get it to be the same or to pass the new refresh token to our code after the amount of seconds it says?

    • @Juan.Jose.Jaramillo
      @Juan.Jose.Jaramillo 4 ปีที่แล้ว

      I guess it refreshes to the same one from what I just saw. If there's any clarification please let me know. (If I want to run my application on a website I guess it won't work anymore in the Google Playground. Is it true?

    • @TheLifeOfADev
      @TheLifeOfADev  4 ปีที่แล้ว +2

      No you should be fine the refresh token is used to generate an new access token. If you push the project to a server the refresh token we get from the playground should work. The only reason we use the Google playground is because I wanted to keep the tutorial simple... You could just pass the client id and the client secret and then have the client/person who owns the calendar could auth your project. Google would then call a call back url with a refresh token. I just didn't want to have to set up an express server and handle routes.

    • @Juan.Jose.Jaramillo
      @Juan.Jose.Jaramillo 4 ปีที่แล้ว

      @@TheLifeOfADev wow thanks for the reply, it does make sense now. I wasn't understanding properly. It will help me a lot thank you so much and great tutorial!

  • @kavitagunda3926
    @kavitagunda3926 4 ปีที่แล้ว

    Hey, I leveraged the video that you created and built the API and is showing the right console message but the event is not getting reflected on my google calendar, I have no idea what went wrong, could please assist?

    • @TheLifeOfADev
      @TheLifeOfADev  4 ปีที่แล้ว

      The insert method on the calendar instance is asynchronous so you should be able to chain a .catch() statement to the end of it an console log the error. This will give you a better look at what is causing the problem. You can then let me know the error and I can give you my best guess.

  • @orionsysomboune8320
    @orionsysomboune8320 2 ปีที่แล้ว

    Hi, I can't access the calendar API mentioned @ 12:15. Someone help?

    • @pablomediero7589
      @pablomediero7589 2 ปีที่แล้ว

      You have to add user email in OAuth Screen/ Users

  • @VaVVideos
    @VaVVideos 3 ปีที่แล้ว +2

    This video seems like it is good for accessing the google calendar of only 1 account for the whole application. What if you wanted to access the google account for the user that is currently accessing the app? How do you add multiple user functionality to this implementation?

    • @SupriyaSinghi
      @SupriyaSinghi 3 ปีที่แล้ว

      following.

    • @asadalikazim
      @asadalikazim 2 ปีที่แล้ว +1

      did you find the answer for this?

    • @asadalikazim
      @asadalikazim 2 ปีที่แล้ว

      @@SupriyaSinghi did you find the answer for this?

    • @SupriyaSinghi
      @SupriyaSinghi 2 ปีที่แล้ว

      @@asadalikazim No.

    • @VaVVideos
      @VaVVideos 2 ปีที่แล้ว +1

      @@asadalikazim nope.

  • @nurharizulaimanmatharith4023
    @nurharizulaimanmatharith4023 4 ปีที่แล้ว +1

    Great video...where can i read the documentation?

    • @Arif.Amirov
      @Arif.Amirov 4 ปีที่แล้ว +2

      do you mean calendar api's documentation? developers.google.com/calendar/overview

    • @nurharizulaimanmatharith4023
      @nurharizulaimanmatharith4023 4 ปีที่แล้ว +1

      @@Arif.Amirov tq

  • @MrMegaFirestarter
    @MrMegaFirestarter ปีที่แล้ว

    13:00 I have en error "You can’t sign in because ...App sent an invalid reques. ..." and there is no refs "Advanced" and so on There is only " Learn more about this error
    If you are a developer of ...App, see error details.
    Error 400: redirect_uri_mismatch" - and there are tonns of documentation

    • @MrMegaFirestarter
      @MrMegaFirestarter ปีที่แล้ว

      Note: It may take 5 minutes to a few hours for settings to take effect - That's why I couldn't do that

  • @rakeshkumarark
    @rakeshkumarark 2 ปีที่แล้ว

    Please help me

  • @kensleylewis
    @kensleylewis 3 ปีที่แล้ว

    So just to understand things, I don't need to use the embed for Google Calendars anymore? I can use this API process to display the Calendar on my web site? Or am I mistaken?

    • @TheLifeOfADev
      @TheLifeOfADev  3 ปีที่แล้ว

      You can do that but this video tutorial is about how to dynamicly add events to your calendar from a nodejs backend.

  • @bikashbhandari5608
    @bikashbhandari5608 4 ปีที่แล้ว

    Wow nice explanation..i have one question..how this events goes in others users calander ?? We have setup our app credentials how it goes in another users calander when they login with google as we didnt check login credentials? Plz reply

    • @TheLifeOfADev
      @TheLifeOfADev  4 ปีที่แล้ว +4

      So I might make a video on how to use others accounts. But at its most basic form you would add an express server to this. That way you could set up a call back route. You would then take the URL of that route and add it to your oAuth credentials authorized call back URLs. Then you could have a route which take the user you want calendar access from and have them auth through the Google consent screen like we did. Google would then send that users refresh token to they call back route you set up on express. Once you have that users refresh token you just use that. "Ps. I'm probably going to make a video. Just because I know from reading this back it might be hard to understand. On another note you could also through passport in the mix to help with the Google auth from the other user."

    • @bikashbhandari5608
      @bikashbhandari5608 4 ปีที่แล้ว

      @@TheLifeOfADev yes hard to understand..i love the way u explain..please make a video..i am making an app where users login then they make some reservation..i want to make users able to add their reservation in google calander

    • @Arif.Amirov
      @Arif.Amirov 4 ปีที่แล้ว

      @@TheLifeOfADev when do you think you'll be able to make that video? I'm currently trying to write an application that logs users in and fetches their events for lets say the week and show it on the user side. The deadline is pretty close so I'd really appreciate if you could say the approximate date :) loved your video btw, great content!

    • @dorsafferchichi930
      @dorsafferchichi930 4 ปีที่แล้ว

      @@TheLifeOfADev please make a video, it's hard to understand it

    • @BeeAlpha25
      @BeeAlpha25 4 ปีที่แล้ว

      @@TheLifeOfADev Hi any idea when this video will be coming out?

  • @ericelsner1553
    @ericelsner1553 3 ปีที่แล้ว +1

    I'm so frustrated. All I want to know is how to display my own calendar events from my own calendar on my own website. No OAuth. Just data. There is literally zero information on this. (Not your fault obviously)

  • @jacquelinehubbard7194
    @jacquelinehubbard7194 3 ปีที่แล้ว

    Is it just me or is the video blurry?

  • @teascripts
    @teascripts 2 ปีที่แล้ว

    I can't seem to find what's wrong. I deleted the event, removed the test user and even added a new test user, event reset the refresh token but each time I try to create a new event I get a log in the console "Sorry I am busy".
    So I tried to console.log(res.data.calendars), this returned { busy: [Object] , [Object] }
    Then I tried console.log(res.data.calendars.busy) this returned `undefined`.
    What could be wrong?