Last active
September 23, 2023 17:53
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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