Created
March 6, 2021 17:08
-
-
Save Tarequzzaman/734bfe87ecf58b662bc082b02da421d2 to your computer and use it in GitHub Desktop.
Calling rasa REST api using requests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
data = '{"sender":"218311","message":"english"}' | |
response = requests.post('http://127.0.0.1/webhooks/rest/webhook', data=data) | |
# print(response.text) | |
# response.text | |
import json | |
r = response.json() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment