Hi community!
I'm very new with Perspective and one of the first things we try to do in our project is to connect to an external API and retrieve data, so I can store it to my DB.
I have tried to connect following some examples online, but without success.
Based on what you see on the photo, config, and error message, is it because of my config or something with the API? Any ideas, please share!
Thank you in advance!
A 403 just means that the server you're talking to doesn't like your attempt to authenticate. Are you sure it wants you to pass an X-Api-Key
header? Are you sure your header is valid? Do you have documentation for the API you're trying to access?
1 Like
If you are going to be storing to a DB, you likely don't want to use a binding in your user interface. Consider using the scripted system.net.httpClient()
in a gateway event. Or explain when you want this to happen.
4 Likes