HTTP Requests from LWC with the Fetch API | Developer Quick Takes

preview_player
Показать описание
Learn how to perform HTTP requests using the JavaScript standard Fetch API from a Lightning Web Component (or any other JS file).

00:00:04 Introduction
00:00:15 What is the Fetch API?
00:00:29 What are we building?
00:00:58 Remote site settings
00:01:07 Content Security Policy Trusted Sited
00:01:21 LWC Application demo
00:02:00 Making a GET request using Promises
00:03:39 Convert image Blob to Base64 image
00:04:19 Making a POST request using async/await
00:05:27 Resources
00:05:52 Thanks for watching

Connect with Salesforce Developers:

Рекомендации по теме
Комментарии
Автор

In this video, you talked about the FormData interface. Can someone point me to that interface? Is it globally available? Is it a part of LWC framework?

amitgayal
Автор

When is it better to use this approach instead of making the call from Apex? 🤔

oscargarciamartinez
Автор

Would be great to have access to the repo

AlejandroSanchez-scwh
Автор

Is it possible to call tooling api from public site (VF page) using public profile ?

I am trying to create a custom field on a custom object.

thanks.

rishabhagnihotri
Автор

Does these HTTP requests counts against the Org API limit ?

shubham