Real time Salesforce Project:: Show Weather Details of city- Part 2!

Поділитися
Вставка
  • Опубліковано 9 січ 2025

КОМЕНТАРІ • 3

  • @codewith_Khan
    @codewith_Khan  7 місяців тому

    Folks, I forgot to mention in the video that since we are using Named Credentials then Remote Site Setting will no more be required hence we can simply delete the respective Remote Site Setting for Weather API. Thanks!

  • @gopalraorangaraj5842
    @gopalraorangaraj5842 7 місяців тому

    End point not working could you please provide url.

    • @codewith_Khan
      @codewith_Khan  7 місяців тому

      Hey! The endpoint URL should be like below, you can hit the URL directly in browser tab to see the result
      api.openweathermap.org/data/2.5/weather?q=pune&&APPID=ab4a188555840adac4da0dcd68d4cf95
      Please generate your own API key and make sure if you are using named credential then base URL will start with "https" instead of "http"
      Do watch this video to get clear understanding on generating your own API key and also go through the code
      ua-cam.com/video/XhzbRV0vCjw/v-deo.html
      Source code link:
      github.com/shahbazkhan800/UA-cam-Tutorials/tree/main/Weather%20Forecast%20Project/force-app/main/default