Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import json
- import requests
- #This works
- requests.post(web_hook_url , data = json.dumps({"text":any_string}))
- #But not this
- requests.post(web_hook_url , data = {"text":any_string})
- #Because you need to submit json string not python string to Slack API
Advertisement
Add Comment
Please, Sign In to add comment