27 lines
677 B
Python
27 lines
677 B
Python
import requests
|
|
|
|
|
|
def list_prop():
|
|
url = "http://api.northpass.com/v2/properties/people/bulk"
|
|
headers = {
|
|
"X-Api-Key": "SlpQlju219WnWogn94dQUT6Yt",
|
|
"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)
|
|
print(response.text)
|
|
print(response.status_code)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
list_prop()
|