6 function address_create_example(){
9 'location_type_id' => 6,
10 'street_name' => 'Ambachtstraat',
11 'street_number' => '23',
12 'street_address' => 'Ambachtstraat 23',
13 'postal_code' => '6971 BN',
14 'country_id' => '1152',
20 $result = civicrm_api( 'address','create',$params );
26 * Function returns array of result expected from previous function
28 function address_create_expectedresult(){
30 $expectedResult = array(
39 'location_type_id' => '6',
42 'street_address' => 'Ambachtstraat 23',
43 'street_number' => '23',
44 'street_name' => 'Ambachtstraat',
46 'postal_code' => '6971 BN',
47 'country_id' => '1152',
48 'manual_geo_code' => 0,
53 return $expectedResult ;
58 * This example has been generated from the API test suite. The test that created it is called
60 * testCreateAddress and can be found in
61 * http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/AddressTest.php
63 * You can see the outcome of the API tests at
64 * http://tests.dev.civicrm.org/trunk/results-api_v3
66 * To Learn about the API read
67 * http://book.civicrm.org/developer/current/techniques/api/
69 * and review the wiki at
70 * http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
72 * Read more about testing here
73 * http://wiki.civicrm.org/confluence/display/CRM/Testing
75 * API Standards documentation:
76 * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards