![]() ![]() Below you will find the Python script, but probably it’s easier if you first take a look at the content of an incoming webbook event. ![]() Let’s now move on to the ‘meat’ of this blogpost, the Python script itself. Let’s check again if our webhook was registered successfully. Note that in the targetUrl we need to specify our localtunnel or ngrok endpoint. ![]() Do this by sending a POST request to the URL with the body indicated in the screenshot. ![]() We will go ahead and create a Webhook now. You will see we get an empty list meaning there are no webhooks registered so far. Next, let’s see if there are already webhooks available for this chatbot. First, configure your Postman client with the access_token (the one you wrote down while creating the bot in Webex). We could have done it in Python as well though. To create a webhook, we will use Postman. So for instance, each time a message is received in Webex Teams, a webhook will be send to our Python application (exposed via ngrok or localtunnel) where it can be further processed. Webhooks allow your app to be notified via HTTP when a specific event occurs in Webex Teams. Rather than repeating myself here, please check out the Add the bot to your Webex Teams space section of this blogpost. Rather than repeating myself here, please check out the Create a webex teams bot section of this blogpost. Your Python app will be exposed on this URL. ~blog-hugo-netlify-code/WebexT/python_deckofcards/deckofcards_bot master ❯ lt -port 5005 ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |