So far you’ve been doing great. Broadly following is the procedure to how app can access the API key to make the api call as you are expecting,
- Once an ‘iparam’ in mentioned in
iparams.json
file, platform will render the UI automatically so you don’t have to. Once the$fdk run
is running on:10001
, visitlocalhost:10001/custom_configs
(a suggestion on CLI will also apprear…) - As you open the browser, you’ll see a simulation page. Something like the one you’ve discovered. But there would be a text field with display name as
API Key
. - Enter the API key up and click ‘Install’. This simulation is similar to when user clicks on the Install btn.
- You will notice under
.fdk/
folder API key entered is stored. - In
server.js
I assume your code is trying to run under a product event. For example, let’s say onConversationCreate. - You can simulate the onConversationCreate by opening another simulation page
http://localhost:10001/web/test
. Just select onConversationCreate and click on simulate - That is when the API key that you stored will be substituted in
args
so that you can make the request.
From the information that you’ve shared,
The iparams
value is an empty object. It suggests that you might not have done #1 to #3 steps. Let me know if you see any issue in between any of these steps.