6 function campaign_get_example(){
9 'title' => 'campaign title',
10 'description' => 'Call people, ask for money',
11 'created_date' => 'first sat of July 2008',
14 $result = civicrm_api( 'campaign','get',$params );
20 * Function returns array of result expected from previous function
22 function campaign_get_expectedresult(){
24 $expectedResult = array(
32 'name' => 'campaign_title',
33 'title' => 'campaign title',
34 'description' => 'Call people, ask for money',
36 'created_date' => '20120130621222105',
41 return $expectedResult ;
46 * This example has been generated from the API test suite. The test that created it is called
48 * testGetCampaign and can be found in
49 * http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/CampaignTest.php
51 * You can see the outcome of the API tests at
52 * http://tests.dev.civicrm.org/trunk/results-api_v3
54 * To Learn about the API read
55 * http://book.civicrm.org/developer/current/techniques/api/
57 * and review the wiki at
58 * http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
60 * Read more about testing here
61 * http://wiki.civicrm.org/confluence/display/CRM/Testing
63 * API Standards documentation:
64 * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards