6 function mailing_group_subscribe_example(){
8 'email' => 'test@test.test',
12 'hash' => 'b15de8b64e2cec34',
13 'time_stamp' => '20101212121212',
16 $result = civicrm_api( 'mailing_group','subscribe',$params );
22 * Function returns array of result expected from previous function
24 function mailing_group_subscribe_expectedresult(){
26 $expectedResult = array(
32 'subscribe_id' => '1',
33 'hash' => '5b056fa32d2d56c6',
38 return $expectedResult ;
43 * This example has been generated from the API test suite. The test that created it is called
45 * testMailerGroupSubscribeGivenContactId and can be found in
46 * http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/MailingGroupTest.php
48 * You can see the outcome of the API tests at
49 * http://tests.dev.civicrm.org/trunk/results-api_v3
51 * To Learn about the API read
52 * http://book.civicrm.org/developer/current/techniques/api/
54 * and review the wiki at
55 * http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
57 * Read more about testing here
58 * http://wiki.civicrm.org/confluence/display/CRM/Testing
60 * API Standards documentation:
61 * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards