Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
CiviCRM Cookbook

You're reading from   CiviCRM Cookbook Improve your CiviCRM capabilities with this clever cookbook. Packed with recipes and screenshots, it's the natural way to dig deeper into the software and achieve more for your nonprofit or civic sector organization.

Arrow left icon
Product type Paperback
Published in Jun 2013
Publisher Packt
ISBN-13 9781782160441
Length 236 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Toc

Table of Contents (13) Chapters Close

Preface 1. Setting Up CiviCRM FREE CHAPTER 2. Organizing Data Efficiently 3. Using the Power of Profiles 4. Controlling Permissions 5. Managing Communications 6. Searching and Reporting 7. Integrating CiviCRM with Drupal 8. Managing Events Effectively 9. Using Campaigns, Surveys, and Petitions Effectively 10. Working with CiviMember 11. Developing for CiviCRM Index

Exploring the CiviCRM API

Writing code is laborious. It takes a lot of skill, a lot of trial and error, and most importantly, a lot of time and cost. Rather than write the code from scratch, you can use prewritten functions that do the work. These functions, when gathered together, are called an Application Programming Interface (API).

How to do it…

CiviCRM has an API. This recipe shows you how to explore it:

  1. Navigate to http://<mycivicrm.com>/civicrm/ajax/doc/api#explorer. Substitute <mycivicrm.com> with your own domain.
    How to do it…
  2. Select the Activity entity and perform a create action on it.
  3. Click on the Source Contact field, the Source Record field, and the Subject field. The fields are added dynamically to the API Explorer.
  4. Set Source Contact to 1, Source Record to 1, and Subject to Test. The values you put in each field are called parameters. Click on Go.
    How to do it…

How it works…

CiviCRM provides us with ready-made code examples with the fields and parameters added.

How it works…

CiviCRM also provides...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image