Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Curl in python

import requests

headers = {
    'Content-type': 'application/json',
}

data = '{"text":"Hello, World!"}'

response = requests.post('https://hooks.slack.com/services/asdfasdfasdf', headers=headers, data=data)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Curl #python
ADD COMMENT
Topic
Name
6+6 =