Udemy
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
Development
Web Development Data Science Mobile Development Programming Languages Game Development Database Design & Development Software Testing Software Engineering Development Tools No-Code Development
Business
Entrepreneurship Communications Management Sales Business Strategy Operations Project Management Business Law Business Analytics & Intelligence Human Resources Industry E-Commerce Media Real Estate Other Business
Finance & Accounting
Accounting & Bookkeeping Compliance Cryptocurrency & Blockchain Economics Finance Finance Cert & Exam Prep Financial Modeling & Analysis Investing & Trading Money Management Tools Taxes Other Finance & Accounting
IT & Software
IT Certification Network & Security Hardware Operating Systems Other IT & Software
Office Productivity
Microsoft Apple Google SAP Oracle Other Office Productivity
Personal Development
Personal Transformation Personal Productivity Leadership Career Development Parenting & Relationships Happiness Esoteric Practices Religion & Spirituality Personal Brand Building Creativity Influence Self Esteem & Confidence Stress Management Memory & Study Skills Motivation Other Personal Development
Design
Web Design Graphic Design & Illustration Design Tools User Experience Design Game Design Design Thinking 3D & Animation Fashion Design Architectural Design Interior Design Other Design
Marketing
Digital Marketing Search Engine Optimization Social Media Marketing Branding Marketing Fundamentals Marketing Analytics & Automation Public Relations Advertising Video & Mobile Marketing Content Marketing Growth Hacking Affiliate Marketing Product Marketing Other Marketing
Lifestyle
Arts & Crafts Beauty & Makeup Esoteric Practices Food & Beverage Gaming Home Improvement Pet Care & Training Travel Other Lifestyle
Photography & Video
Digital Photography Photography Portrait Photography Photography Tools Commercial Photography Video Design Other Photography & Video
Health & Fitness
Fitness General Health Sports Nutrition Yoga Mental Health Dieting Self Defense Safety & First Aid Dance Meditation Other Health & Fitness
Music
Instruments Music Production Music Fundamentals Vocal Music Techniques Music Software Other Music
Teaching & Academics
Engineering Humanities Math Science Online Education Social Science Language Teacher Training Test Prep Other Teaching & Academics
AWS Certification Microsoft Certification AWS Certified Solutions Architect - Associate AWS Certified Cloud Practitioner CompTIA A+ Cisco CCNA Amazon AWS AWS Certified Developer - Associate CompTIA Security+
Graphic Design Photoshop Adobe Illustrator Drawing Digital Painting InDesign Character Design Canva Figure Drawing
Life Coach Training Neuro-Linguistic Programming Mindfulness Personal Development Meditation Personal Transformation Life Purpose Neuroscience Emotional Intelligence
Web Development JavaScript React CSS Angular PHP WordPress Node.Js Python
Google Flutter Android Development iOS Development Swift React Native Dart Programming Language Mobile Development Kotlin SwiftUI
Digital Marketing Google Ads (Adwords) Social Media Marketing Google Ads (AdWords) Certification Marketing Strategy Internet Marketing YouTube Marketing Email Marketing Retargeting
SQL Microsoft Power BI Tableau Business Analysis Business Intelligence MySQL Data Analysis Data Modeling Data Science
Business Fundamentals Entrepreneurship Fundamentals Business Strategy Online Business Business Plan Startup Freelancing Blogging Tax Preparation
Unity Game Development Fundamentals Unreal Engine C# 3D Game Development C++ 2D Game Development Unreal Engine Blueprints Blender
30-Day Money-Back Guarantee
Development Web Development Laravel

Use Laravel to Consume APIs and Services Over HTTP

Create an HTTP client with Laravel and Guzzle HTTP to consume any API and online service over HTTP requests from Laravel
Rating: 4.3 out of 54.3 (65 ratings)
446 students
Created by JuanD MeGon, ProgramarYa By JuanDMeGon
Last updated 6/2020
English
English [Auto]
30-Day Money-Back Guarantee

What you'll learn

  • Consume any HTTP service (yours or from a third party)
  • Re-utilize the components created during the course to consume any HTTP service you want
  • Authenticate users in your HTTP Client using information obtained from external HTTP services
  • Build and HTTP Client with Laravel, completely modular and maintainable
  • Domain the usage of access tokens and OAuth2 when sending requests and authorizing the requests of your HTTP Client
Curated for the Udemy for Business collection

Course content

14 sections • 67 lectures • 5h 29m total length

  • Preview04:44
  • Preview02:04

  • Preview02:55
  • How to Ask Questions
    00:48
  • Creating a client and users for the API to consume
    05:39
  • The different ways to authenticate requests to the API (OAuth2)
    10:25
  • How to refresh tokens and handle the scope of the token
    04:39
  • The responses, actions, and restrictions of the API to consume
    05:44

  • About the development environment to use in the course
    01:55
  • Obtaining the Laravel structure for the HTTP Client
    05:33
  • The source code of the HTTP Client with Laravel
    00:28
  • Adding Guzzle to make HTTP requests from Laravel
    02:38
  • Laravel 6 additional step
    00:20
  • Preparing the environment with a simple configuration
    04:38
  • Preparing the HTTP client to store and authenticate users
    07:03

  • Laravel 6: Before starting this section
    01:18
  • Generating the initial components of the HTTP client interface
    06:19
  • Generalizing the welcome view of the HTTP Client
    04:36
  • Allowing to display the HTTP Client messages in any location
    05:43
  • Adding the possibility to login directly with the API
    03:11

  • Creating a generic component to consume HTTP services from Laravel
    09:40
  • Creating the component that will know how to consume the target service
    05:21
  • Preparing the configuration of the service to consume
    06:28

  • Implementing the method to authorize requests
    03:56
  • Implementing the method to decode the HTTP API responses
    03:09
  • Implementing the method to detect error responses
    03:57
  • Facilitating and generalizing the use of the Service created in the Client
    06:37

  • Getting the list of products from the API
    06:03
  • Preview05:25
  • Obtaining the list of categories from the HTTP service
    04:01
  • Adding the list of categories to the main page of the HTTP Client
    03:14
  • Obtaining the details of a specific product from the API
    04:43
  • Showing the details of a specific product
    05:44
  • Obtaining the products of a category of the HTTP service
    03:46
  • Showing the products of a category in the HTTP Client
    03:10

  • Adding a new service to obtain access tokens from the HTTP Client
    04:53
  • Automatically obtaining a token associated with the HTTP Client
    04:22
  • Using tokens obtained automatically when consuming the API
    04:44
  • Avoiding getting a token for every request to the HTTP Service
    09:07

  • Generating the URL to enable the login button with the API
    04:14
  • Preparing the button to obtain the authorization of the users
    07:22
  • Obtaining a valid token from the authorization code
    07:43
  • Obtaining the users information from the HTTP service
    06:48
  • Registering or updating users with information from the API
    07:33
  • Creating sessions for users validated by the HTTP service
    04:48

  • Obtaining a valid token from the user credentials
    04:01
  • Authenticating a user in the HTTP Client through their credentials
    07:09
  • Properly handling attempts with invalid credentials
    04:29

Requirements

  • PHP installed and functional in your system (PHP 7.2 or higher recommended)
  • Composer installed and functional in your development environment
  • PHP basic knowledge

Description

Do you need to consume an HTTP Service or API and it overwhelms you to think about HTTP methods, requests, OAuth2, access tokens, credentials, grant types, user sessions and so on?

I cover you! In this course, I show you that everything is about using the correct values ​​and tools to make everything much simpler.


Create your HTTP client with Laravel: Build and design a web project with Laravel, to consume online services and APIs.

Obtain data from HTTP services or APIs (yours or from third parties) and show it in a friendly and correct way to your users.

Learn step-by-step, everything you need to consume any web service or API online, with PHP from a Laravel project and using Guzzle.

At the end of the course, you will have multiple components that you can re-utilize in your projects to consume any HTTP service or API.


Do not wait any longer and sign up :)


Why should you choose this course?

  • Because it gives you a detailed view, as in no other course, of how to consume an HTTP service or API using Laravel and PHP.

  • Because it gives you the essential components that you can re-utilize in your other projects when consuming any HTTP service or API

  • Because you will be able and confident enough to use any service or API protected by OAuth2 and access tokens.

  • Because I not only show you how to create your HTTP Client with Laravel, but I also help you identify the different challenges of an HTTP Client and how to solve them properly.

  • Because simply, there is no other course that covers all these topics.


What will you be able to do at the end of the course?
In general, you will be able to implement an HTTP client that allows you to consume any HTTP service or API, either your own or from third parties, using PHP and Laravel. In addition, you will have a clear idea of ​​how to proceed when facing new projects and services to be consumed, reusing as much as possible the components created and learned during this course.

You will know how to use a high-level library such as Guzzle, to send HTTP requests from PHP with Laravel. Implementing generic components that allow sending requests of any kind to any HTTP service with Guzzle.

In the end, you will have gained complete confidence in sending secure and correctly authorized requests to different HTTP services, either using simple access tokens or even using an entire security mechanism such as OAuth2. Everything, using PHP and Laravel.


During the course, you will learn this...

For the HTTP Client:

  • How to consume a service or API through HTTP requests from Laravel

  • How to authenticate and create user sessions in your HTTP Client with information from other services

  • How to automate the process of obtaining an access token to authorize the requests of your HTTP Client

  • The different ways to obtain an access token from a service that uses OAuth2 and its differences (grant types)

  • How to handle the expiration times of a token and avoid losing access to information

  • How to handle access errors to the consumed HTTP service or API and how to proceed

  • How to handle and authenticate protected requests associated with a user's information from the HTTP Client

  • Use of Guzzle from Laravel, to send HTTP requests to whatever HTTP service or API

  • How to configure and prepare Laravel to make requests to any HTTP service or API

  • Use of Bootstrap 4 to show the information obtained from the consumed services

  • Handling and preparing to resolve exceptions and errors when consuming external services with Laravel


For any Laravel project:

  • How to install Laravel in your development environment for professional projects

  • Configure Laravel, in your environment for an agile and simple development

  • Build of a professional, modular and, a scalable project with Laravel

  • Creation of routes, views, templates, controllers and more with Laravel

  • Handling errors and internal exceptions of the Laravel project

  • Installation of dependencies to a Laravel project (Guzzle case)

Of course, that's not all. Take a look at the full description of sections and classes for more details.


It does not end there! You will have lifetime access to current classes and those I can add later to the course.

Subscribe now and do not wait any longer to consume those services that you need and obtain the information that your users require.


Still having doubts?

Do not worry, here I share some more information about HTTP Client with Laravel.


Why an HTTP Client with Laravel?

About HTTP:

HTTP (HyperText Transfer Protocol) is a widely used protocol on the Internet and any current language has a mechanism to make requests on HTTP in a simple way which, of course, includes PHP and Laravel (a framework for PHP).

Since HTTP is a protocol that is currently widely used, any current system or language will be able to communicate correctly with other systems that use this protocol (regardless of the programming language), allowing the use of data and information from whatever system online. Such information, obtained from any HTTP service, can be used in your projects to offer any type of information and service to the users of your systems. This makes you an HTTP client since you will be consuming any HTTP service or API from your own project.

About Laravel:

Laravel is the most popular framework for PHP, even one of the most popular in the world. With Laravel, you will be able to develop very complex PHP applications in a very short time, which includes an HTTP Client. During the course, you will see the enormous facilities that Laravel provides when obtaining and using the information of importance for your users, as well as facilitating the process of integrating external systems easily.

Laravel has innumerable characteristics that differentiate it from multiple frameworks for PHP and other languages, which allow implementing very complex tasks in a simple way and in a short time.


Of course, if you need more information, just get in touch :)

Subscribe now. See you in classes

Who this course is for:

  • Advanced or beginners who wants to consume any HTTP service (yours or from a third party) using Laravel
  • Who are having problems to domain the usage of access tokens to send and authenticate requests to HTTP services or APIs
  • Who want to dominate OAuth2 and its usage to authenticate requests to protected HTTP services or APIs
  • Who wants to domain the different ways to obtain valid access tokens to authorize the requests to any protected HTTP service
  • Who needs to authenticate users and create sessions, using information obtained from external HTTP services or APIs

Featured review

Ghazi Kawashita
Ghazi Kawashita
65 courses
17 reviews
Rating: 5.0 out of 5a year ago
Yes yes yes. straight to the point. I would suggest you adjust each lesson's bugs by recording again and give more example like another api in order to see how this project can fit in other services but it is already excellent. Thank you Juan

Instructors

JuanD MeGon
Online instructor, web developer, master & systems engineer
JuanD MeGon
  • 4.6 Instructor Rating
  • 4,683 Reviews
  • 21,937 Students
  • 18 Courses

EN:

More than 18,000 students cannot be wrong! 

That is how many students have taken my courses, leaving more than 3,900 top-rated reviews.

Enroll today to learn how to become a web development expert and to get that high-paying jobs and projects, grow your own business, or work as a freelance from home or your own office.

Join a community of students from 150 countries and get practical skills you can use right away.


ES:

¡Más de 18.000 estudiantes no pueden estar equivocados!

Esa es la cantidad de estudiantes que han tomado mis cursos y dejando más de 3.900 calificaciones positivas.

Inscríbete hoy mismo para aprender cómo convertirte en experto en desarrollo web y obtener esos trabajos y proyectos mejor pagados, hacer crecer tu propio negocio o trabajar de forma independiente desde tu casa o tu propia oficina.

Únete a una comunidad de estudiantes de más de 150 países diferentes y obtén habilidades prácticas que puedas usar de inmediato.

ProgramarYa By JuanDMeGon
Your e-Learning Experience
ProgramarYa By JuanDMeGon
  • 4.6 Instructor Rating
  • 4,683 Reviews
  • 16,158 Students
  • 18 Courses

EN:

ProgramarYa is here to teach you Programming and Web Development as nobody else does in the school nor college. Help you to achieve all your goals and dreams giving you the skills to get there.

After more than eight years of teaching online, ProgramarYa knows the essentials, strategies, and skills you must learn to achieve all that you want.

All the courses are under the Udemy 30 day "No question asked" refund policy. So, you can try any of our courses without any risk.

See you in classes and happy learning.


ES:

ProgramarYa está aquí para enseñarte programación y desarrollo web como nadie más lo hace en el colegio ni la universidad. Ayudarte a alcanzar todas tus metas y sueños brindándole las habilidades para llegar allí.

Después de más de ocho años de enseñanza en línea, ProgramarYa conoce los elementos esenciales, las estrategias y las habilidades que debes aprender para lograr todo lo que deseas.

Todos los cursos están sujetos a la política de reembolso de 30 días de Udemy "Sin preguntas". Por lo tanto, puedes probar cualquiera de los cursos sin ningún riesgo alguno.

Te veo en clases y feliz aprendizaje.

  • Udemy for Business
  • Teach on Udemy
  • Get the app
  • About us
  • Contact us
  • Careers
  • Blog
  • Help and Support
  • Affiliate
  • Terms
  • Privacy policy
  • Cookie settings
  • Sitemap
  • Featured courses
Udemy
© 2021 Udemy, Inc.