Files
Gainsight/Scripts/API_Tests/get_sent_webhooks.py

18 lines
496 B
Python
Raw Permalink Normal View History

import requests
import Apikeys
import pprint
PP = pprint.PrettyPrinter(indent=4)
APIKEY = Apikeys.LUMAFINTECH
HEADERS = {"content-type": "application/json", "X-Api-Key": APIKEY }
BASEURL = "https://api.northpass.com/v2/webhooks"
FILTURL = f"{BASEURL}?filter[attempt_left][eq]=28"
# filter[type][in]=course_completed_events
print(FILTURL)
response = requests.get(FILTURL, headers=HEADERS)
resp = response.json()
for i in resp['data']:
print(i['attributes']['created_at'] )
# PP.pprint(resp)