API LIBRARY
Collapse Sidebar Menu
Expand Drawer

Member Single Listing

In order to get a single Member listing, you must figure know the MemberKey associated with the Agent. For example, the following request would retrieve data on Members with the MemberEmail of "SomeUser@email.com"
https://api-prod.corelogic.com/trestle/odata/Member?$top=100&$select=MemberKey,MemberFullName,MemberCity&$filter=MemberEmail eq 'SomeUser@email.com'
 
The response contains the linke "MemberKey": "2574773" which is the MemberKey value we need to construct our Listing query. To get the top 10 listing data associated with that MemberKey, submit the following query with the 2574773 MemberKey filter:
https://api-prod.corelogic.com/trestle//odata/Property?$top=10&$orderby=ListingKey&$filter=ListAgentKey eq '2574773'


Examples

Code Example

curl -X GET \
  'https://api-prod.corelogic.com/trestle/odata/Property?$top=10&$orderby=ListingKey&$filter=ListAgentKey%20eq%20%272574773%27' \
  -H 'Authorization: Bearer [token]' \
  -H 'Postman-Token: 7264edab-2883-4eaa-a052-edf9ba310061' \
  -H 'cache-control: no-cache'

Result

(The top 10 listings associated with the 2574773 MemberKey)

Code Example

<?php

$request = new HttpRequest();
$request->setUrl('https://api-prod.corelogic.com/trestle/odata/Property');
$request->setMethod(HTTP_METH_GET);

$request->setQueryData(array(
  '$top' => '10',
  '$orderby' => 'ListingKey',
  '$filter' => 'ListAgentKey%20eq%20%272574773%27'
));

$request->setHeaders(array(
  'Postman-Token' => '04bb7463-7c0f-4563-8c0e-936b31f75806',
  'cache-control' => 'no-cache',
  'Authorization' => [token]
));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}

Result

(The top 10 listings associated with the 2574773 MemberKey)