4 demonstrates _high filter (at time of writing doesn't work if contact_id is set
6 function activity_get_example(){
8 'source_contact_id' => 17,
10 'filter.activity_date_time_high' => '20120101000000',
14 $result = civicrm_api( 'activity','get',$params );
20 * Function returns array of result expected from previous function
22 function activity_get_expectedresult(){
24 $expectedResult = array(
32 'activity_type_id' => '46',
33 'subject' => 'Make-it-Happen Meeting',
34 'activity_date_time' => '2011-01-01 00:00:00',
36 'location' => 'Pensulvania',
37 'details' => 'a test activity',
42 'is_current_revision' => '1',
44 'source_contact_id' => '17',
49 return $expectedResult ;
54 * This example has been generated from the API test suite. The test that created it is called
56 * testGetFilterMaxDate and can be found in
57 * http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/ActivityTest.php
59 * You can see the outcome of the API tests at
60 * http://tests.dev.civicrm.org/trunk/results-api_v3
62 * To Learn about the API read
63 * http://book.civicrm.org/developer/current/techniques/api/
65 * and review the wiki at
66 * http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
68 * Read more about testing here
69 * http://wiki.civicrm.org/confluence/display/CRM/Testing
71 * API Standards documentation:
72 * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards