3 * Test Generated example demonstrating the SurveyRespondant.get API.
6 * The SurveyRespondant api is not currently supported.
11 function survey_respondant_get_example() {
18 $result = civicrm_api3('SurveyRespondant', 'get', $params);
20 catch (CiviCRM_API3_Exception
$e) {
22 $errorMessage = $e->getMessage();
23 $errorCode = $e->getErrorCode();
24 $errorData = $e->getExtraParams();
27 'error_message' => $errorMessage,
28 'error_code' => $errorCode,
29 'error_data' => $errorData,
37 * Function returns array of result expected from previous function.
42 function survey_respondant_get_expectedresult() {
49 'deprecated' => 'The SurveyRespondant api is not currently supported.',
52 return $expectedResult;
56 * This example has been generated from the API test suite.
57 * The test that created it is called "testGetSurveyRespondants"
58 * and can be found at:
59 * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/SurveyRespondantTest.php
61 * You can see the outcome of the API tests at
62 * https://test.civicrm.org/job/CiviCRM-master-git/
64 * To Learn about the API read
65 * http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API
67 * Browse the api on your own site with the api explorer
68 * http://MYSITE.ORG/path/to/civicrm/api
70 * Read more about testing here
71 * http://wiki.civicrm.org/confluence/display/CRM/Testing
73 * API Standards documentation:
74 * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards