function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
huniversehuniverse 

httpresponse from 3rd party API

Hello all,

                      

                    I am tring to get response from 3rd party API but it shown me below error message.I am beginner for salesforce platform. I am getting the result to get response from Google. But hard luck for actual API. Can anybody suggest some ideas, link to overcome problem. How i can pass API username and password along with the code. What else thing necessary to interact with 3rd party API. Please suggest demo code, link that will make connection  to 3rd party API with Callout method.

 

System.CalloutException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 

 

Thanking You

H R Dave

dkadordkador

It really depends on the auth mechanism the other API is using.  Which API is it and how do they want you to send your username and password?  Is it just HTTP basic auth or something more elaborate?