![]() ![]() It must reference the external credential you have juste created so that the http headers will be automatically added to the request. Now that the external credential is created, you can create the named credential. Now, let’s move to the configuration of the API call itself. Hit Save to update your external credential.Īt this stage, you have setup the authentication. Make sure to put the value you have previously generated on Coinmarketcap ! (and leave “1” as the sequence Number) The documentation of API specifies that for authentication purpose, a header with the name X-CMC_PRO_API_KEY and the value they give to you should be put on each http request when requesting the API. Now that your external credential have been created, scroll down untill Custom Headers… Setup the API key in the external credential Authentication Protocol: we will not use oAuth, so please put “Custom” so that we can define further the API key.For me it didn’t auto-populate, so the same value as Label but with underscores should do the job Name: this will be the technical name. ![]() Label: chose a label that make sense to identify the external credential.Go directly to the external credentials tab and click on new. What you have to do first is to create an external credential that will be the configuration of the authentication on the Remote REST API. To do that, go to Salesforce setup and search for Named credential and click on it: Create an external credential That’s where you’ll need to add the API key you have previously created! What is a Named credential? Well, that’s where you will specify the base URL of the API you want to use and how you want to authenticate on this API. Now that you have created your API key, you need to create what we call a Named Credential in your SFDC org. In this tutorial, we will be using this one and see how to configure it into Salesforce : Configure a Named credential in Salesforce setup ![]() This API key gives access to several services. Simply register, get your API key and store it to use it further. This API key is important because it will be used to authenticate on the API of coinmarketcap. Get an access to an exchange rate APIįirst of all, please notice that I take this as an example, I’m affiliated with no way with this API provider. It’s free if you do only a few API call, you can register and get an API key for free.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |