13 lines
312 B
Python
13 lines
312 B
Python
import requests
|
|
import json
|
|
|
|
url = "http://company-explorer:8000/api/provision/superoffice-contact"
|
|
payload = {"so_contact_id": 4}
|
|
auth = ("admin", "gemini")
|
|
|
|
try:
|
|
resp = requests.post(url, json=payload, auth=auth)
|
|
print(json.dumps(resp.json(), indent=2))
|
|
except Exception as e:
|
|
print(f"Error: {e}")
|