6 function survey_get_example(){
9 'title' => 'survey title',
10 'activity_type_id' => '30',
11 'max_number_of_contacts' => 12,
12 'instructions' => 'Call people, ask for money',
15 $result = civicrm_api( 'survey','get',$params );
21 * Function returns array of result expected from previous function
23 function survey_get_expectedresult(){
25 $expectedResult = array(
33 'title' => 'survey title',
34 'activity_type_id' => '30',
35 'instructions' => 'Call people, ask for money',
36 'max_number_of_contacts' => '12',
39 'created_date' => '2013-02-04 22:43:26',
40 'bypass_confirm' => 0,
45 return $expectedResult ;
50 * This example has been generated from the API test suite. The test that created it is called
52 * testGetSurvey and can be found in
53 * http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/SurveyTest.php
55 * You can see the outcome of the API tests at
56 * http://tests.dev.civicrm.org/trunk/results-api_v3
58 * To Learn about the API read
59 * http://book.civicrm.org/developer/current/techniques/api/
61 * and review the wiki at
62 * http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
64 * Read more about testing here
65 * http://wiki.civicrm.org/confluence/display/CRM/Testing
67 * API Standards documentation:
68 * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards