Get a list of people and their data since the last poll
The list of people since the last poll, along with their fields. Each time a poll is called, the user and date/time is recorded. Therefore the next poll reviews changes made since the same user made the poll request. This is particularly useful when wanting to sync changes with another system.
GET
/people/poll_new
curl \
-X GET https://YOURSITE.infoodle.com/apiv2/people/poll_new \
-H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"people": [
{
"unique_id": 95923,
"url": "https://demoinfoodle.infoodle.com/people?uniqueid=2877",
"title": "Mr",
"firstname": "Alfred Bees and Hives Ltd",
"middlename": "string",
"lastname": "string",
"organisationcontact": "Y",
"gender": "ORGANISATION",
"phone": [
{
"for": "PERSONAL",
"id": 456,
"type": "work",
"value": "012 123 1234"
}
],
"cell": [
{
"id": 456,
"type": "work",
"value": "012 123 1234"
}
],
"email": [
{
"id": 456,
"type": "work",
"value": "my@example.com",
"active": 1
}
],
"person_image": "string",
"address": {
"houseid": 125,
"organisation": "string",
"householdname": "Alfred Bees and Hives Ltd",
"housenamenum": "The Cottage",
"addressline1": "5 Owens Place",
"addressline2": "string",
"area": "string",
"city": "Mount Maunganui",
"postcode": 3116,
"fax": "string",
"country": "New Zealand",
"formatted": "5 Owens Place\\nMount Maunganui 3116\\nNew Zealand",
"phone": "string",
"phonelabel": "string",
"visible": 1
},
"date_time_changed_utc": "2019-02-13T01:16:05",
"notes": {
"view": "Y",
"create": "Y"
},
"person_custom_fields": {
"person_customised_tab_name": {
"person_custom_field": {
"type": "D",
"raw": "string",
"value": "string"
}
}
},
"household_custom_fields": {
"HOUSEHOLD": {
"household_custom_field": {}
}
},
"connected": [
{
"unique_id": 67284,
"name": "John Miller",
"type": "Unknown",
"gender": "Male",
"organisationContact": "N",
"person_image": "eflkw2erfWEfsldkfj2dflkmsdcWE...."
}
],
"alternate": [
{
"id": 79,
"unique_id": 61652,
"text": "12 Tekoa Street"
}
],
"alternateAddresses": [
{
"id": 125,
"address_type": "PO Box",
"houseid": 125,
"text": "45 High Street, Lower Valley, AB12 12",
"formatted": "45 High Street\\nLower Valley\\nAB12 12\\nUnited Kingdom",
"organisation": "Bobs Burgers Ltd",
"householdname": "The Smith Family",
"addressline1": "5 Owens Place",
"addressline2": "string",
"addressline3": "string",
"addressline4": "string",
"area": "string",
"city": "Mount Maunganui",
"postcode": 3116,
"fax": "string",
"country": "New Zealand",
"phone": "string",
"phonelabel": "string"
}
],
"canEdit": 1,
"last_updated_datetime_utc": "2022-05-17 03:09:58",
"lastUpdatedDatetimeUtcShowLocal": "17 May 2022 15:09"
}
]
}