X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2Fexamples%2FCampaignCreate.php;h=8fd508ba4b2814c63bd0792d7791456ce60c49b8;hb=edb0d67a5384286d3bcafb4c36f21a0c5b355dda;hp=997099ef54e45882bb11457188bc3793691774f4;hpb=fe265b4e47246d8dfdfd05e8f8b7cceeb48a8d13;p=civicrm-core.git diff --git a/api/v3/examples/CampaignCreate.php b/api/v3/examples/CampaignCreate.php index 997099ef54..8fd508ba4b 100644 --- a/api/v3/examples/CampaignCreate.php +++ b/api/v3/examples/CampaignCreate.php @@ -4,7 +4,7 @@ Create a campaign - Note use of relative dates here http://www.php.net/manual/en/datetime.formats.relative.php */ function campaign_create_example(){ -$params = array( +$params = array( 'version' => 3, 'title' => 'campaign title', 'description' => 'Call people, ask for money', @@ -21,13 +21,13 @@ $params = array( */ function campaign_create_expectedresult(){ - $expectedResult = array( + $expectedResult = array( 'is_error' => 0, 'version' => 3, 'count' => 1, 'id' => 1, - 'values' => array( - '1' => array( + 'values' => array( + '1' => array( 'id' => '1', 'name' => 'campaign_title', 'title' => 'campaign title', @@ -40,7 +40,7 @@ function campaign_create_expectedresult(){ 'parent_id' => '', 'is_active' => '', 'created_id' => '', - 'created_date' => '20080705000000', + 'created_date' => '20120130621222105', 'last_modified_id' => '', 'last_modified_date' => '', 'goal_general' => '',