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
|
2024-04-25 19:43:20 -04:00
|
|
|
apikey = Apikeys.SANDATA
|
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" }
|
2024-04-25 19:43:20 -04:00
|
|
|
payload = {"domain": "sandata.com", "custom_dkim_selector": "g"}
|
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)
|