Uncommented some of Pipedrive's templates for password reset warning. WilliamSonoma notes, Aubrey check in.
This commit is contained in:
@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user