Skip to content

Instantly share code, notes, and snippets.

@La-comadreja
Last active September 23, 2023 17:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save La-comadreja/d4fb61b1a63a1786534695b0cae69214 to your computer and use it in GitHub Desktop.
Save La-comadreja/d4fb61b1a63a1786534695b0cae69214 to your computer and use it in GitHub Desktop.
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