11 lines
251 B
Python
11 lines
251 B
Python
import requests
|
|
import json
|
|
|
|
webhook_url = 'http://127.0.0.1:5000/webhook'
|
|
|
|
data = { 'name': 'Request three',
|
|
'Channel URL': 'test url3' }
|
|
|
|
r = requests.post(webhook_url, data=json.dumps(data), headers={'Content-Type': 'application/json'})
|
|
|