Using REST APIs in a web application | Quick PHP Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 ก.ย. 2024
  • In this video I show you how to create a simple web application which converts a location into latitude and longitude using the Google Maps API. Then it uses those coordinates to pull images taken in that location from the Instagram API.
    Final PHP file used in this tutorial:
    github.com/jel...
    Example Google Maps API call:
    maps.googleapi...
    Example Instagram API call using Disneyland's coordinates:
    api.instagram....
    Chrome extension I'm using to make JSON responses readable in the browser:
    chrome.google....
    Outro music:
    "Rollin at 5 - electronic" Kevin MacLeod (incompetech.com)
    Licensed under Creative Commons: By Attribution 3.0
    creativecommons...

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

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

    Thank you for making a video that's not too simple, but doesn't skip a bunch of critical steps to get the learner from A to B. You have just the right amount of detail to help someone who knows enough about the basics, but wants to get to the next level. Unlike a whole truckload of TH-cam publishers, you are a great teacher. You know your stuff and can communicate it well. Great video! Thank you! P.S.: If you're ever tempted to skip over showing the code, even typing it out (this is great), please don't. It's part of what makes it great.

  • @kockgunner
    @kockgunner 9 ปีที่แล้ว

    Perfect. I am getting into APIs and it's frustrating how most tutorials assume you have knowledge of knowing what to do with the API data instead of explaining how to parse it. Thank you!

  • @CCampbellKC
    @CCampbellKC 7 ปีที่แล้ว

    Personally, I don't think you went too fast at all. In fact, I was glad it wasn't long and drawn out. Fast, concise, and put together very well.

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

    You are easily the best web coding tutorial guy I've ran into so far. Cheers!

  • @EZraw87
    @EZraw87 8 ปีที่แล้ว

    Found your channel randomly researching APIs and your application coincidentally does exactly what I wanted to do. Thx for the tuts sir, you are awesome!

  • @danielpettus4846
    @danielpettus4846 9 ปีที่แล้ว

    Usually I find a site with information so I can read because people talk too slow making it almost not worth the time to watch some videos. You however make each sentence full of information but very concise, where I feel like I need to hear each word as its valuable to the video.

  • @rishabhgusai96
    @rishabhgusai96 8 ปีที่แล้ว +3

    this video deserves more than a million views. look at the video quality and the way he speaks it was fast but if you aren't new to programming you will find this content amazing and time saving none other thing can teach you such stuff so fast.
    Beginners keep away search something that ends with "For Beginners"

    • @rishabhgusai96
      @rishabhgusai96 8 ปีที่แล้ว

      +Rishabh Gusain Now I am gonna watch each and every video of this guy and like them as well please make a video about accessing a payment gateway api

    • @eshwarenm9111
      @eshwarenm9111 8 ปีที่แล้ว

      True. Getting onboard with API technologies can be confusing for flat HTML CSS JS writers.

    • @reyariass
      @reyariass 8 ปีที่แล้ว

      Haha, i just found this channel and i love it. :)

    • @condor07uk
      @condor07uk 8 ปีที่แล้ว

      +1

  • @eshwarenm9111
    @eshwarenm9111 8 ปีที่แล้ว

    I don't understand people who complain he speaks too fast. Just slow down the video or pause if you need to. I think in the entirety of TH-cam, this guy does the best with concepts, with fun and working examples. For UX, go find Nick Babich - his Medium (UX Planet) articles are next level.

  • @janeelliottsbookshelf4374
    @janeelliottsbookshelf4374 6 ปีที่แล้ว

    Thanks so much! You talk fast, but I really appreciate it as I hate wading through slow talking videos wasting time - just pause the vid when needed. You're very clear with your descriptions.

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

    Learning about API's and I've watched many videos and I'll say - This one trumps them all in being informative, clear and concise ! ! Looking forward to more ! Cheers !

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

      +Jonathan Chong I agree completely... Now if only there were more videos.... (Seems this one was the last in over a year.)

  •  7 ปีที่แล้ว

    I really like this more technical example of APIs. I usually don't dig into the developer side of things, but I appreciate that you do

  • @fstarockaburns425
    @fstarockaburns425 8 ปีที่แล้ว

    i think im gonna watch every vid uve ever made - stellar stuff for a 15 yrs long php coder who needs to play catchup - fantastically fast, to the point and incredible - thanks so much.. def going to look into using this for future apps..

  • @ilmakeyouone
    @ilmakeyouone 7 ปีที่แล้ว

    Pretty cool application REST API on PHP. Thank you man. One of the best programming channel on the TH-cam!

  • @WaqasKhan-lm2yo
    @WaqasKhan-lm2yo 5 ปีที่แล้ว +3

    I really like your fast way of teaching Man 😊, thanks. I become sleepy when listening to some other guys 😴.

  • @joebazooks
    @joebazooks 5 ปีที่แล้ว

    great production quality. one of if not the best production quality ive seen in a programming tutorial

  • @FaizKhan-fm6kg
    @FaizKhan-fm6kg 8 ปีที่แล้ว +2

    Excellent. Your videos are full of useful information.
    And do not consider talking slow. Everything is perfect the way it is.

  • @pierreugaz
    @pierreugaz 7 ปีที่แล้ว

    I was looking for something like this in order to fully understand how rest apis work, thank you so much sir!

  • @glynnjohnson558
    @glynnjohnson558 9 ปีที่แล้ว

    Just wanted to say thanks! I've been struggling to get started with the Linnworks API all day as I've never done anything like it. Thanks to this tutorial I've managed to get going and actually understand what I'm doing now. Great video!

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

    Just what I needed, perfect. Short and quick. no bs.

  • @flaviotosi931
    @flaviotosi931 5 ปีที่แล้ว

    Bravo. Even a rusted bone lioke me has finally understood the mechanism of a REST API in PHP HTML. thanks a lot

  • @vlad981
    @vlad981 9 ปีที่แล้ว +30

    Dude, you are awesome! please, make more video!)

  • @adamrajnoha4653
    @adamrajnoha4653 9 ปีที่แล้ว

    man, thank you so much for this.
    I knew what the concept of API is but every example was way too much difficult, you explained the usage quickly, understandable and efficient way))

  • @Shnigi
    @Shnigi 8 ปีที่แล้ว

    I like tutorials like this, no bullshit explained, straight to the point. Thanks

  • @LidongYang
    @LidongYang 9 ปีที่แล้ว

    Please keep making these videos.
    I found them very helpful and I'm comprehending without too much trouble.
    Thank you a lot.

  • @mkmabl
    @mkmabl 8 ปีที่แล้ว

    you are awesome! I'm a Jack of too many trades and master of none. I've done an ounce of udp and tcp server work and a bit of php. your video here was exactly what I needed to get started on this topic. in particular, I like the no library approach, even the simple forms drudgery. it is best when simple examples limit number of toolsets used. here you have html and php. I'm going to now look for a server tutorial from you. great stuff! thanks!

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

    I learned a lot about Rest API after watching this video. Also I learned about AJAX through one your video and created a really small but cool application about Instagram trend search.
    Unfortunately Instagram has now restricted the usage of its endpoints. But anyway, this is really fun to learn.

  • @andrewmcbride88
    @andrewmcbride88 9 ปีที่แล้ว

    I subscribed for more of this series! I'm very new to APIs and you did a great job of explaining what they are and now showing how to use them easily.
    thank you!

  • @CodeProHassam
    @CodeProHassam 6 ปีที่แล้ว +195

    Eminem of coding .

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

      Right? Rap God here lol

    • @Besiktas7Bjk7
      @Besiktas7Bjk7 6 ปีที่แล้ว +6

      Honestly, would you click on the video, if it would be 20-30 minutes?
      I am sure, I wouldn't.
      He has to rap, and he is good at it!

    • @OWEN-zn8rm
      @OWEN-zn8rm 6 ปีที่แล้ว +1

      watch it with 0.25 speed

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

      This comment gets funnier the longer the video goes on

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

      Hahaha. indeed bruv . eminem of coding

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

    No new videos in over a year? What happened to this channel?! I feel this guy explained things extremely well....

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

    Great video! You are really good when explain things. Just a comment from my instructor perspective, you could be talking in a slower pace considering most of the viewers are here to learn something new.

  • @johansebasb
    @johansebasb 9 ปีที่แล้ว

    Keep on the good work! Very useful mini-tutorials! Waiting for more

  • @MoutasemMohammad
    @MoutasemMohammad 8 ปีที่แล้ว

    Amazing !! don't you ever quite make such amazing videos

  • @kellywang9331
    @kellywang9331 8 ปีที่แล้ว

    An advanced introductory video.
    Good work. Appreciate it.

  • @jeyjd123
    @jeyjd123 9 ปีที่แล้ว

    Excellent presentation, I loved it. Looking forward more.
    Nicely done

  • @Manoj5437
    @Manoj5437 8 ปีที่แล้ว

    Dude seriously... Hats Off !!! Post more videos :)

  • @christopherenriquez9765
    @christopherenriquez9765 7 ปีที่แล้ว

    I thought that the speed of the video isn't set to normal so i check it out lol. BTW i learn from you , thank you.

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

    Nicely presented & straight to the point. Thanks! Keep it up.

  • @gwenaelriou3559
    @gwenaelriou3559 7 ปีที่แล้ว

    a quick and efficient explanation !

  • @Manishchauhan-yf4fr
    @Manishchauhan-yf4fr 4 ปีที่แล้ว

    Perfect Explanation. Great Job

  • @mehranvafaee1053
    @mehranvafaee1053 6 ปีที่แล้ว

    Absolutely love the way you put it! Bravo!

  • @shadsluiter
    @shadsluiter 7 ปีที่แล้ว +28

    Unfortunately, the Instagram API has changed. Tutorial needs an update.

    • @a.davidoyerinde7068
      @a.davidoyerinde7068 7 ปีที่แล้ว

      Please what is the new instagram API?

    • @Beebop121
      @Beebop121 6 ปีที่แล้ว

      Thanks, I just had a problem with that as well

    • @shadsluiter
      @shadsluiter 5 ปีที่แล้ว

      @@a.davidoyerinde7068 instagram.com/developer/

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

      It has changed but the principle stays same.

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

    i love the tutorial. thanks Eminem!

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

    Same as anyone said thanks, Love the explanation. SOLID real SOLID explanation got it under 10 minutes into brain. Could improve the Coding and showing examples a little longer in 2 to three seconds.

  • @1g2002541
    @1g2002541 6 ปีที่แล้ว

    real awesome video, big Thumb up!

  • @zhaksy
    @zhaksy 8 ปีที่แล้ว

    Super appreciate all the hard work put into this video!

  • @Deadnature
    @Deadnature 6 ปีที่แล้ว

    Dude. You are awesome. Not faff, just info. Subbed.

  • @frenchmarty7446
    @frenchmarty7446 6 ปีที่แล้ว

    I could not hit that subscribe button fast enough after watching.

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

    Excellent !!!

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

    Great Videos. Concept is much clear. Thank you for this video. Would like to see more on this topic.

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

    Great video, helping me get a much better understanding of the next step in my project

  • @AlMarufSharif
    @AlMarufSharif 8 ปีที่แล้ว

    why your videos are too amazing??? really i love it :)

  • @shedahoma
    @shedahoma 8 ปีที่แล้ว

    very straight to the point!! I love it

  • @Phantomwalker
    @Phantomwalker 9 ปีที่แล้ว

    These are pretty awesome tutorials you've made sir. Thanks for creating these. :)

  • @floriwanna
    @floriwanna 8 ปีที่แล้ว

    Thanks!! From Arg!! I finally catched get results! have a nice day

  • @mujahidbhoraniya6038
    @mujahidbhoraniya6038 6 ปีที่แล้ว

    Nice understanding . I like your video. Really very simple explanation for you.

  • @christchild5757
    @christchild5757 8 ปีที่แล้ว

    More video please!! You are awesome!!

  • @severn-master
    @severn-master 5 ปีที่แล้ว

    wow no typo, he is god

  • @ImmaShadowGirl
    @ImmaShadowGirl 8 ปีที่แล้ว +44

    Your videos are amazing and you explain really well. But in this particular one, you went too fast. It was amazing but could've been better if you gave some time to the viewer's brain to store one block of data you input, before moving onto the next block.

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

      Well said ImmaShadowGirl. He should know better

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

      +ImmaShadowGirl or u could just pause and rewind to.

    • @eshwarenm9111
      @eshwarenm9111 8 ปีที่แล้ว +3

      Or go Shift + '

    • @ImmaShadowGirl
      @ImmaShadowGirl 8 ปีที่แล้ว +5

      ^@Rishabh Gusain I was pausing and rewinding a hell lot and it reduces concentration, hence, the comment.
      and Eshwaren M Try slowing it down and you'll know how awkward it is. Hence, the comment. :D

    • @reyariass
      @reyariass 8 ปีที่แล้ว

      Completely agree with you. :)

  • @shwebsoft7122
    @shwebsoft7122 6 ปีที่แล้ว

    Just subscribed to your channel. Became a fan of you!

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

    Fantastic guide. I appreciated the speed

    • @arisweedler4703
      @arisweedler4703 7 ปีที่แล้ว

      Not being sarcastic^ I have no qualms with needed to pause and/or rewind a few times.

  • @susie1010
    @susie1010 7 ปีที่แล้ว

    I'm so glad I could slow down the speed of the video... i'm not an english native speaker and it was very hard to follow your talking - especially with such a "technical" topic. nevertheless it is a great video, thank you.

  • @lafouinevino1496
    @lafouinevino1496 6 ปีที่แล้ว

    that's good! very introduction and i get a grest information for exemple rest APIs in a web application

  • @lastmanustanding
    @lastmanustanding 7 ปีที่แล้ว

    It's mandatory to use the access_token' for Instagram requests. They changed how it works and it no longer works with 'client_id'.
    You will also have to specify/pass a 'scope' parameter in the URI when you are requesting the 'access_token'.
    The rest of this tutorial still works. :)

  • @rodneycox7233
    @rodneycox7233 9 ปีที่แล้ว

    Your videos are great!!!! Thank you so much.
    Keep em coming please!

  • @patrickkouame2162
    @patrickkouame2162 8 ปีที่แล้ว

    Great videos!! Clear and concise to the point. Thanks

  • @jxcreed705
    @jxcreed705 7 ปีที่แล้ว

    This is a great and amazing tutorial!...Thanks for the video!, hope you make videos more for future developers.

  • @salvajez1
    @salvajez1 7 ปีที่แล้ว

    thanks! This video helped me a lot to understand WEB API. keep doing videos!

  • @atabish2
    @atabish2 8 ปีที่แล้ว

    Great tutorial.
    I think Instagram has a best set APIs. I have also tested the search profile API using the same method.

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

    Sir you are a great teacher

  • @sonathaj1352
    @sonathaj1352 8 ปีที่แล้ว

    Such an awesome tutorial. Loved it!

  • @agcjbp
    @agcjbp 7 ปีที่แล้ว

    very use full concept

  • @renzogamboa821
    @renzogamboa821 9 ปีที่แล้ว

    I can't wait to see some AJAX in action as well as 'caching' you mentioned. Great Video! I subscribed.

  • @botadetola
    @botadetola 9 ปีที่แล้ว

    WOW! Awesome basis...thanks man

  • @MoHaMMeDReDhAZ
    @MoHaMMeDReDhAZ 8 ปีที่แล้ว

    You are great, Thanks a lot .. please make more video

  • @muhammadjahangeer
    @muhammadjahangeer 8 ปีที่แล้ว

    Really awesome videos.

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

    These videos have been incredibly helpful. Thank you for taking time out to make them.

  • @chrismuga
    @chrismuga 7 ปีที่แล้ว

    this was, overall just incredible to watch... thanks.

  • @alentech6091
    @alentech6091 7 ปีที่แล้ว

    Love the videos man thank you so much and keep up the great work!

  • @ReasonableHuman1
    @ReasonableHuman1 7 ปีที่แล้ว

    Simply explained

  • @Sivim
    @Sivim 6 ปีที่แล้ว

    Great explanation.

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

    Awesome Content Bro

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

    awesome explanation

  • @AlexanderRamsey
    @AlexanderRamsey 8 ปีที่แล้ว

    This video made me really excited, thanks!

  • @leumasile
    @leumasile 9 ปีที่แล้ว

    awesome, I enjoyed this video, it was fast and straight forward !
    Thanks

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

    My kind of tutorial! Thank you sirrrr...

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

    Awesome tutorial !! Thanks a lot

  • @chenbaron129
    @chenbaron129 9 ปีที่แล้ว

    Truly Awesome video. Keep up the good work =)

  • @pankajbhandarkar8975
    @pankajbhandarkar8975 7 ปีที่แล้ว

    Superb...

  • @AustinNwaka
    @AustinNwaka 7 ปีที่แล้ว

    0.75 Speed makes sense. Nice tutorials.

  • @JoseManuelRiveraColon
    @JoseManuelRiveraColon 9 ปีที่แล้ว

    Great video man, keep doing them!!!

  • @abhirocks550
    @abhirocks550 9 ปีที่แล้ว +3

    Thank you so much for this awesome video :-)

  • @umbrellastv695
    @umbrellastv695 9 ปีที่แล้ว

    Very cool man thanks for this.

  • @i.i
    @i.i 7 ปีที่แล้ว

    nice

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

    It is a great tutorial. Well explained

  • @leticialimacavalcanti
    @leticialimacavalcanti 6 ปีที่แล้ว

    English is not my first language and I understand only 50% of what you said, that is, you speak very fast!

  • @tkosgary
    @tkosgary 6 ปีที่แล้ว

    Sooooo nice!!! Thank you very much!

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

    easy . . and fast.. thanks !!!

  • @030426101993
    @030426101993 8 ปีที่แล้ว

    tks for the video. Very basis and understandable

  • @thiernodiallo2251
    @thiernodiallo2251 5 ปีที่แล้ว

    My kind of tutorial!
    It's Amazing. Thanks Sir

  • @hamdighodbane7043
    @hamdighodbane7043 9 ปีที่แล้ว

    This is a high quality tutorial, thanks!