List contacts in a list
list.list_contacts(strlist_id, ListListContactsParams**kwargs) -> ListListContactsResponse
GET/v1/lists/{listId}/contacts
Returns a paginated list of contacts that belong to the specified list.
Required scopes: lists:read and contacts:read
Rate limit category: Search
List contacts in a list
from lightfield import Lightfield
client = Lightfield(
api_key="My API Key",
)
list_list_contacts_response = client.list.list_contacts(
list_id="listId",
)
print(list_list_contacts_response.data){
"data": [
{
"id": "id",
"createdAt": "createdAt",
"fields": {
"foo": {
"value": "string",
"valueType": "ADDRESS"
}
},
"httpLink": "httpLink",
"relationships": {
"foo": {
"cardinality": "cardinality",
"objectType": "objectType",
"values": [
"string"
]
}
},
"updatedAt": "updatedAt",
"externalId": "externalId"
}
],
"object": "object",
"totalCount": 0
}Returns Examples
{
"data": [
{
"id": "id",
"createdAt": "createdAt",
"fields": {
"foo": {
"value": "string",
"valueType": "ADDRESS"
}
},
"httpLink": "httpLink",
"relationships": {
"foo": {
"cardinality": "cardinality",
"objectType": "objectType",
"values": [
"string"
]
}
},
"updatedAt": "updatedAt",
"externalId": "externalId"
}
],
"object": "object",
"totalCount": 0
}