Uncommented some of Pipedrive's templates for password reset warning. WilliamSonoma notes, Aubrey check in.

This commit is contained in:
Norm Rasmussen
2023-10-05 17:26:26 -04:00
parent a610b52c6e
commit 8cd8a61d34
26 changed files with 541 additions and 798 deletions

View File

@ -1,23 +1,30 @@
import requests
import Apikeys
APIKEY = Apikeys.walmartprod
def list_prop():
url = "http://api.northpass.com/v2/properties/people/bulk"
"""
Quick little function to output Course Properties to terminal
"""
url = "http://api2.northpass.com/v2/properties/courses/properties"
headers = {
"X-Api-Key": "SlpQlju219WnWogn94dQUT6Yt",
"X-Api-Key": APIKEY,
"accept": "application/json",
"content-type": "application/json",
}
payload = {
"data": [
{
"attributes": {"properties": {"sample_list": "item 3"}},
"id": "0b31c435-c18b-4573-984e-32cda57045b4",
"type": "person_properties",
}
]
}
response = requests.post(url, headers=headers, json=payload)
# payload = {
# "data": [
# {
# "attributes": {"properties": {"sample_list": "item 3"}},
# "id": "0b31c435-c18b-4573-984e-32cda57045b4",
# "type": "person_properties",
# }
# ]
# }
# response = requests.post(url, headers=headers, json=payload)
response = requests.get(url, headers=headers)
print(response.text)
print(response.status_code)