Skip to content

Instantly share code, notes, and snippets.

@La-comadreja
Last active September 23, 2023 17:53
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Create the organization Byrd Metropolitan Medical Group for airSlate Document Automation Hub API tutorial
import http.client
conn = http.client.HTTPSConnection("api.airslate.io")
payload = "{\n \"name\": \"Byrd Metropolitan Medical Group\",\n \"subdomain\": \"byrd-metropolitan-medical\",\n \"category\": \"HEALTH_CARE\",\n \"size\": \"0-5\"\n}"
headers = {
'Content-Type': "application/json",
'Accept': "application/json",
'Authorization': "Bearer (Copy access token here)"
}
conn.request("POST", "/v1/organizations", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment