16 lines
422 B
Python
16 lines
422 B
Python
import requests
|
|
import sys
|
|
sys.path.insert(0, "./API_Tests/")
|
|
import Apikeys
|
|
apikey = Apikeys.GSU
|
|
|
|
url = "https://api.northpass.com/v2/email_domains"
|
|
header = { "X-Api-Key": apikey, "Content-Type": "application/json" }
|
|
payload = {"domain": "gainsight2.com", "custom_dkim_selector": "ce"}
|
|
|
|
response = requests.post(url, headers=header, json=payload)
|
|
|
|
print(response.json())
|
|
print(response.text)
|
|
print(response.status_code)
|