PL_People::details() returns one or many people using the GET People RESTful API endpoint. The people returned are leads as seen in the Placester.com CRM area. The method respects the search arguments provided in the same format as needed for the API. Here are some example requests:

// Returns all people
PL_People::details();
// Returns a single person
PL_People::details(array('id'=>'idOfPerson'));

Parameters

The only parameter available for PL_People::details() is an array of IDs of the people you want to retrieve.

Sample Output

array (
  'total' => 6,
  'offset' => 0,
  'limit' => 50,
  'count' => 6,
  'people' => 
  array (
    0 => 
    array (
      'id' => 'sd8fsf76967sdfsf',
      'cur_data' => 
      array (
        'email' => 'user@re123.com',
      ),
      'uncur_data' => 
      array (
      ),
      'relation' => 2,
      'updated_at' => '2013-04-30 17:41:49 UTC',
    ),
    1 => 
    array (
      'id' => '78sd8f76s9f876s9f6sdf',
      'cur_data' => 
      array (
        'email' => 'agent@example.com',
      ),
      'uncur_data' => 
      array (
      ),
      'relation' => 2,
      'updated_at' => '2013-05-02 16:53:54 UTC',
    ),
    2 => 
    array (
      'id' => '7d6s9f67s9df867sdf8',
      'cur_data' => 
      array (
        'email' => 'new@example.com',
      ),
      'uncur_data' => 
      array (
      ),
      'relation' => 2,
      'updated_at' => '2013-05-06 14:48:00 UTC',
    ),
    3 => 
    array (
      'id' => 'sdf76sd9f876sd9f',
      'cur_data' => 
      array (
        'email' => 'topagent@example.com',
      ),
      'uncur_data' => 
      array (
      ),
      'relation' => 2,
      'updated_at' => '2013-05-06 14:58:47 UTC',
    ),
    4 => 
    array (
      'id' => '6a78sdf76s9df76s9f',
      'cur_data' => 
      array (
        'name' => 'Chuck Test',
        'email' => 'Chuck@retest.com',
      ),
      'uncur_data' => 
      array (
      ),
      'relation' => 2,
      'updated_at' => '2013-06-16 02:30:50 UTC',
    ),
    5 => 
    array (
      'id' => '8as78a68976sdf9876sdf98',
      'cur_data' => 
      array (
        'name' => 'James Smith',
        'email' => 'jsmith@example.com',
      ),
      'uncur_data' => 
      array (
      ),
      'relation' => 2,
      'updated_at' => '2013-06-14 16:53:43 UTC',
    ),
  ),
)