Noob got some Questions where i have to input my API and get the Output on my Bot #88
-
Hello, i just started to Code 3 Month Ago. I´m a little bit confused with the "Getting Started" Template. Maybe someone with more experiance can me explain where i have to call the method and save it to a variable to output it. This is my ApiRequest.cs:
` And this part of the file "HelloWorldCommandHandler.cs" should be for the Output:
` I hope you can understand what i want ;) Sorry for the complete noob question... But i want to do it right and learn it for the future. Thanks for any help and please explain it to me if possible dont post only some code that work :) Greetings |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
Hi @SomebodyToLove1337, so great to have you with us! Seems like you've already done the hard part, you can call your API in the |
Beta Was this translation helpful? Give feedback.
-
Hi @aycabas, could it be that easy? Yes it could... Thank you so mutch, i completly overthink it.... Thanks for the Tipp. Finally i got it to work!!!! Debugging never was funnier :) So my Hack is ready to submit. Thank you so mutch Ayca, you saved my day <3 Greetings |
Beta Was this translation helpful? Give feedback.
-
Unfortunately it does not work. Here is still the code of my new file "DadJokeCommandHandler.cs":
Manifest File:
Well it's not too bad, I'm submitting the program now with just the Developer Jokes. But I will keep trying regardless of the event. |
Beta Was this translation helpful? Give feedback.
-
Actually I have updated everything, also I have updated all the dependencies again. My command has also been added to the suggestions in teams: Actually I have updated everything, also I have updated all the dependencies again. My command has also been added to the suggestions in teams: But it's not that bad, I'll find the bug eventually :) |
Beta Was this translation helpful? Give feedback.
Hi @SomebodyToLove1337, so great to have you with us! Seems like you've already done the hard part, you can call your API in the
HelloWorldCommandHandler.cs
, that's the place we return our values. If you replace Title and Body values in your model with your api response variables, you should be able to see the jokes in your adaptive card. Let me know if it works or if you need further assistance.