updated examples
[civicrm-core.git] / api / v3 / examples / Participant / CreateParticipantPayment.php
index 5135dda0029dcdf3c485752381f96d08fc3426c4..1f70d8f36e3f4ad5f4281b8944bd24bb482d9d51 100644 (file)
@@ -9,7 +9,7 @@ $params = array(
   'contact_type' => 'Individual',
   'display_name' => 'dlobo',
   'api.participant' => array(
-      'event_id' => 39,
+      'event_id' => 40,
       'status_id' => 1,
       'role_id' => 1,
       'format.only_id' => 1,
@@ -77,6 +77,8 @@ function participant_create_expectedresult(){
           'last_name' => '',
           'prefix_id' => '',
           'suffix_id' => '',
+          'formal_title' => '',
+          'communication_style_id' => '',
           'email_greeting_id' => '1',
           'email_greeting_custom' => '',
           'email_greeting_display' => '',
@@ -125,16 +127,16 @@ function participant_create_expectedresult(){
 * This example has been generated from the API test suite. The test that created it is called
 *
 * testCreateParticipantWithPayment and can be found in
-* http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/ParticipantTest.php
+* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ParticipantTest.php
 *
 * You can see the outcome of the API tests at
-* http://tests.dev.civicrm.org/trunk/results-api_v3
+* https://test.civicrm.org/job/CiviCRM-master-git/
 *
 * To Learn about the API read
-* http://book.civicrm.org/developer/current/techniques/api/
+* http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API
 *
-* and review the wiki at
-* http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
+* Browse the api on your own site with the api explorer
+* http://MYSITE.ORG/path/to/civicrm/api/explorer
 *
 * Read more about testing here
 * http://wiki.civicrm.org/confluence/display/CRM/Testing