Need Help On How To Call An API
# 🤝help
h
I am unsure how to successfully call an API, and how it should look and what it should do when called successfully. This is a code snippet for the Travel Advisor API from RapidAPI.com I know I'm missing things I'm just not sure what I'm missing

https://cdn.discordapp.com/attachments/1143920123732832347/1143920124093530162/Screen_Shot_2023-08-23_at_10.47.36_AM.png

https://cdn.discordapp.com/attachments/1143920123732832347/1143920124500389888/Screen_Shot_2023-08-23_at_10.48.17_AM.png

b50fb03d-dce0-49c9-aff4-ffd4d1cf6879
b
Hey @hallowed-football-1829 Did you test that on postman?
remove the first line, botpress has it built-in 😉
h
Ok cool I removed it. So this API is supposed to give you information on travel locations. I have the raw input asking where the user would like to go. When I entere a place nothing happens.
Would you be able to tell me what else I'm missing for the API to be able to speak the info out?
b
Can you check in the logs if you've received any response?
s
Please send the logs so we can have a look for you bud 🙂
8 Views