Answers.Body: <p>There is an "unofficial" api for pcp from Jon:
  <a href="https://civicrm.stackexchange.com/a/3037/246">https://civicrm.stackexchange.com/a/3037/246</a></p>
  
  <p>It would be super useful if you could contribute the needed tests and add it to the core. You know you want to ;)</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-08T17:40:21.107Z
Answers.LastActivityDate: 2016-03-08T17:40:21.107Z
Answers.LastEditDate: 2017-04-13T12:53:13.017Z
Answers.UserDisplayName: Xavier
Answers.Body: <p>Campaign is a different entity than PCP (it's part of civicampaign) so not the right one indeed</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-08T13:52:36.650Z
Answers.LastActivityDate: 2016-03-08T13:52:36.650Z
Answers.UserDisplayName: Xavier
Answers.Body: <p>This feature has been added to version 4.6</p>
  
  <p><a href="https://docs.civicrm.org/user/en/4.6/contributions/personal-campaign-pages/" rel="nofollow">https://docs.civicrm.org/user/en/4.6/contributions/personal-campaign-pages/</a></p>
  
  <p><a href="https://github.com/civicrm/civicrm-core/pull/9049" rel="nofollow">https://github.com/civicrm/civicrm-core/pull/9049</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-09-27T18:16:57.380Z
Answers.LastActivityDate: 2016-09-27T18:16:57.380Z
Answers.UserDisplayName: Adibas03
Body: <p>I've explored the APIs for CiviCRM 4.7. </p>
  
  <p>I can't seem to find an entity for PCP or Personal Campaigns. Tried using the campaigns API but personal campaigns don't come up with it. </p>
  
  <p>Does anyone know of the PCP API and have some sample code?</p>
  
  <p>I've tried</p>
  
  <pre><code>$result = civicrm_api3('Campaign', 'get', array(
              'sequential' =&gt; 1,
             // "created_id" =&gt; $contactId,
          ));
  </code></pre>
  
Tags: <drupal><contacts><civicampaign><personal-campaign-pages>
Title: API to load Personal Campaign Pages
ThreadText: # API to load Personal Campaign Pages
  
  (Asked by: username_0 on 2016-03-08)
  
  I've explored the APIs for CiviCRM 4.7.
  
  I can't seem to find an entity for PCP or Personal Campaigns. Tried using the campaigns API but personal campaigns don't come up with it.
  
  Does anyone know of the PCP API and have some sample code?
  
  I've tried
  
  ```
  $result = civicrm_api3('Campaign', 'get', array(
              'sequential' => 1,
             // "created_id" => $contactId,
          ));
  
  ```
  
  **Tags:** drupal, contacts, civicampaign, personal-campaign-pages
  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_1 on 2016-03-08. Score: 1
  
  There is an "unofficial" api for pcp from Jon:
  <https://civicrm.stackexchange.com/a/3037/246>
  
  It would be super useful if you could contribute the needed tests and add it to the core. You know you want to ;)
  
  
  ---
  
  ### Answer by username_1 on 2016-03-08. Score: 0
  
  Campaign is a different entity than PCP (it's part of civicampaign) so not the right one indeed
  
  
  ---
  
  ### Answer by username_2 on 2016-09-27. Score: 0
  
  This feature has been added to version 4.6
  
  <https://docs.civicrm.org/user/en/4.6/contributions/personal-campaign-pages/>
  
  <https://github.com/civicrm/civicrm-core/pull/9049>
  
  
  ---
  
  