How To Create News App Using LWC And Apex REST API?

How To Create News App Using LWC And Apex REST API?


In this blog, you will learn how you can integration news rest api to salesforce using lightning web component.

Pre-requisite Steps

1. Login to below URL and generate your API Key

https://newsapi.org/

News API
2. After completing your registration, you will get your API KEY.

NOTE : 
  • This API Key is required to fetch the details from News API.
  • Paste the API Key in Apex Class NewsController Endpoint.

3. Add URL to Remote Site Settings.

a) Go to Setup
b) Search for Remote Site Settings
c) Click on "New Remote Site"
d) Paste "https://newsapi.org"
e) Save.


Source Code - GitHub Link


Demo


Follow Us

Posted By : Sudeer Kamat Date :

view_module Related

  • How to Create Apple Music Card Animation Effect In LWC?How to Create Apple Music Card Animation Effect In LWC?
  • How to Create Owl Animated Login Screen In LWC?How to Create Owl Animated Login Screen In LWC?
  • How to Send WhatsApp Message Using WhatsApp Business Platform API In LWCHow to Send WhatsApp Message Using WhatsApp Business Platform API In LWC
  • How To Create Bank Balance Lightning Card UI Design Using LWC?How To Create Bank Balance Lightning Card UI Design Using LWC?
  • How To Create Happy Christmas Lightning Card UI Design Using LWC?How To Create Happy Christmas Lightning Card UI Design Using LWC?

Comments 0