Skip to content

Instantly share code, notes, and snippets.

@Tarequzzaman
Created March 6, 2021 17:08
Show Gist options
  • Save Tarequzzaman/734bfe87ecf58b662bc082b02da421d2 to your computer and use it in GitHub Desktop.
Save Tarequzzaman/734bfe87ecf58b662bc082b02da421d2 to your computer and use it in GitHub Desktop.
Calling rasa REST api using requests
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