Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (18 sloc) 359 Bytes
#!/usr/bin/env python
import json
import requests
headers = {
'apikey': 'YOUR_API_KEY',
}
data = {
'name': 'Programatic Protocol',
}
print(data)
url = 'https://api.labstep.com/api/generic/protocol'
r = requests.post(
url,
json=data,
headers=headers,
)
parsed = json.loads(r.content)
print(json.dumps(parsed, indent=4, sort_keys=True))