How to use PHP cURL to Handle JSON API Requests

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

КОМЕНТАРІ • 52

  • @akhtarhossain8025
    @akhtarhossain8025 5 місяців тому

    I have been searching for days for a tutorial like this. Thank you so much. Very precise and useful for someone with basic curl knowledge. Thanks.

  • @rodgerspenda3207
    @rodgerspenda3207 3 роки тому +4

    Best Video I have seen on cURL, I can't wait for more

  • @william254
    @william254 3 роки тому +2

    I have been searching for days for a tutorial like this. Thank you so much.

  • @betotrader5395
    @betotrader5395 4 роки тому +5

    Very precise and useful for someone with basic curl knowledge. Thanks.

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

    very well made and very clear tutorial! thank you so much! Love the reqres.in usage and introduction.

  • @duyphi5035
    @duyphi5035 Рік тому +2

    Thank you for your very detailed instructions. I have a question. I want to build a search form when I enter keywords into that form and press the search button it will call to another website and then I also want to use code to perform operations like searching for something in the form of that website instead of having to go to that website to enter it manually, then also use the code to automatically click the search button (submit button) in that website (if any) and then get that search results return to my localhost website. How can I do this?

  • @lampucoklat
    @lampucoklat 2 місяці тому

    why i get this message SSL certificate problem: self-signed certificate in certificate chain

  • @LatinoWebStudio
    @LatinoWebStudio 3 роки тому +2

    do you know how to then display the different objects in the array? Like the name in an tag, bio in a , image in an tag?

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

      Did you find out? I need that too and can'ŧ seem to find any tutorial

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

      Do u get that

  • @_soundwave_
    @_soundwave_ Рік тому +2

    Everybody is showing how to send request. I want to know how to handle a request and send back a response.

  • @muhnandar2342
    @muhnandar2342 11 місяців тому

    what if post with parameter request header and request body

  • @thinh0coi
    @thinh0coi 2 місяці тому

    I love your VS Code theme! What is it?

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

    please do more videos on php. Your content is awesome.

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

    After curl then insert same data into MySQL database, need solution for this sir

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

    Demonstration is very good...

  • @ahmedtaha-df1cw
    @ahmedtaha-df1cw 3 роки тому

    please how i retrieve this data by get and loop on it and make this into table view ?

  • @AkashDeep-ux1ig
    @AkashDeep-ux1ig Рік тому

    Amazing vdo thank you so much

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

    that was very clear and precise. thank you

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

    Instead of getting data from url can we fetch data from database and can that be printed into the file ....in file handling case?

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

      Do you mean a remotely hosted database, or a database on the same machine?

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

    someone please guide me a little, is it a practical exercise to use this kind of HTTP_REQUEST in production, actually to be clear i am very bad with Javascript frontend framework. I want to use PHP also as on my frontend to fetch data from an API. thanks in advance.

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

    You're great! Thank u a lot for the info, i'm just suscribed into your channel!!!!!!

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

    I'm getting this error while trying to get the api to display the data:
    Fatal error: Uncaught Error: Call to undefined function curl_init() in C:\Users\MyUsername\PhpDestination\AppMap\App.php:48 Stack trace: #0 {main} thrown in C:\Users\MyUsername\PhpDestination\AppMap\App.php on line 48.
    I am using a real api with this.
    the rest of my code does not intervein with the curl portion.
    any guesses what's wrong?

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

    Really Easy to learn....👍👍

  • @poonambharara9068
    @poonambharara9068 11 місяців тому

    great tutorial, thank you for making this tutorial, sir please make tutorial on firebase

  • @tech-jeweler
    @tech-jeweler 3 роки тому

    thank you. Excellent demonstrated.

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

    Just what I need. Thanks!

  • @Neo-o2g
    @Neo-o2g 2 роки тому

    if API is restricted then how can we pass username and password to it?

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

    Hi . Can you help , what if the url need Api key?

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

    hi I can't find any video to teach how I can use an API via it's manual with PHP
    can you show how use an API ?
    chose 10 API And use them

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

    Thanks for the video

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

    Thanks Man , Helped me a lot :)

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

    Hello . please give setup for decode jsone api sites exchange and show price in website with php

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

    Error i am getting in CURLOPT_RETURENTRANSFER CURLOPT_RETURENTRANSFER for get the data

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

    Thank you!
    This is very helpful

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

    Very Useful Video.

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

    Thank u bro. I subscribed you channel

  • @jayahandika242
    @jayahandika242 Рік тому +1

    Thx mate

  • @นราวดียอดดี

    thank you bro🥰

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

    Great video

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

    Thank you so much

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

    thanks brother

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

    Thank you 🙂

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

    Thanks!!

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

    noo AGAIN !! DAMN !

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

    Warning: Array to string conversion in C:\xampp\htdocs\api\curlpost.php on line 24
    TrendingCasesCP: ArraydateTime: 2023-10-17 10:37:56
    Warning: Array to string conversion in C:\xampp\htdocs\api\curlpost.php on line 24
    TotalCasesCP: Array
    showing this error what to do

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

    curl_getinfo return 407 code why please help me thank you