*custom fields or memberships exist
*/
function contact_get_example(){
-$params = array(
+$params = array(
'id' => 1,
'version' => 3,
- 'api.website.getValue' => array(
+ 'api.website.getValue' => array(
'return' => 'url',
),
'api.Contribution.getCount' => array(),
*/
function contact_get_expectedresult(){
- $expectedResult = array(
+ $expectedResult = array(
'is_error' => 0,
'version' => 3,
'count' => 1,
'id' => 1,
- 'values' => array(
- '1' => array(
+ 'values' => array(
+ '1' => array(
'contact_id' => '1',
'contact_type' => 'Individual',
'contact_sub_type' => '',
'organization_name' => '',
'sic_code' => '',
'contact_is_deleted' => 0,
- 'gender_id' => '',
- 'gender' => '',
- 'prefix_id' => '',
- 'prefix' => '',
- 'suffix_id' => '',
- 'suffix' => '',
'current_employer' => '',
'address_id' => '',
'street_address' => '',
'id' => '1',
'api.website.getValue' => 'http://civicrm.org',
'api.Contribution.getCount' => 2,
- 'api.CustomValue.get' => array(
+ 'api.CustomValue.get' => array(
'is_error' => 0,
'version' => 3,
'count' => 0,
'values' => array(),
),
- 'api.Note.get' => array(
+ 'api.Note.get' => array(
'is_error' => 0,
'version' => 3,
'count' => 0,