2023-12-08 17:20:26 -05:00
|
|
|
import requests
|
2023-11-16 21:41:51 -05:00
|
|
|
import sys
|
|
|
|
|
sys.path.insert(0, "./API_Tests/")
|
|
|
|
|
import Apikeys
|
2023-12-08 17:20:26 -05:00
|
|
|
apikey = Apikeys.CIN7
|
2023-11-16 21:41:51 -05:00
|
|
|
|
|
|
|
|
url = "https://api.northpass.com/v2/email_domains"
|
|
|
|
|
header = { "x-api-key": apikey, "Content-Type": "application/json" }
|
2023-12-08 17:20:26 -05:00
|
|
|
payload = {"domain": "cin7.com", "custom_dkim_selector": "n"}
|
2023-11-16 21:41:51 -05:00
|
|
|
|
|
|
|
|
response = requests.post(url, headers=header, json=payload)
|
|
|
|
|
|
|
|
|
|
print(response.json())
|
|
|
|
|
print(response.text)
|
|
|
|
|
print(response.status_code)
|