Tested List properties
This commit is contained in:
26
Scripts/API_Tests/list_prop_test.py
Normal file
26
Scripts/API_Tests/list_prop_test.py
Normal file
@ -0,0 +1,26 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user