0

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,
        ));

3 Answers 3

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 ;)

0

Campaign is a different entity than PCP (it's part of civicampaign) so not the right one indeed

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.