List opportunities in a list
list.list_opportunities(strlist_id, ListListOpportunitiesParams**kwargs) -> ListListOpportunitiesResponse
GET/v1/lists/{listId}/opportunities
Returns a paginated list of opportunities that belong to the specified list.
Required scopes: lists:read and opportunities:read
Rate limit category: Search
List opportunities in a list
from lightfield import Lightfield
client = Lightfield(
api_key="My API Key",
)
list_list_opportunities_response = client.list.list_opportunities(
list_id="listId",
)
print(list_list_opportunities_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
}