How to use a REST API from PHP using cURL | Full PHP cURL API tutorial

Veröffentlicht am: 03 Dezember 2021
auf dem Kanal: Dave Hollingworth
44,874
858

Learn how to use a REST API from PHP using cURL.

Support my channel: ☕ https://ko-fi.com/davehollingworth
Full PHP APIs course: ➤ https://davehollingworth.com/courses/

You'll learn the following:
The basics of making API requests in PHP
Encode and decode JSON data
Send request headers
Use different request methods (GET, POST, PATCH, DELETE etc.)
Respond to different HTTP status codes

Code shown in the video:
https://github.com/daveh/php-curl-cru...

Resources shown in the video:
https://www.php.net/manual/en/book.cu...
https://docs.github.com/en/rest
https://picocss.com/

00:00 Introduction
00:21 PHP cURL basics
01:42 Add request headers
04:14 Get a string response
05:11 Decode JSON
09:26 Endpoints with IDs
12:35 Setting endpoints
14:33 Multiple cURL options
18:38 POST requests
20:59 HTTP status code
26:57 PATCH requests
28:26 DELETE requests
30:37 Outro

#PHP #API #cURL


Auf dieser Seite können Sie das Online-Video How to use a REST API from PHP using cURL | Full PHP cURL API tutorial mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Dave Hollingworth 03 Dezember 2021 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 44,874 Mal angesehen und es wurde von 858 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!