Book Image

CiviCRM Cookbook

Book Image

CiviCRM Cookbook

Overview of this book

CiviCRM is a web-based, open source, Constituent Relationship Management (CRM) software geared toward meeting the needs of non-profit and other civic-sector organizations.Organizations realize their mission via CiviCRM through contact management, fundraising, event management, member management, mass e-mail marketing, peer-to-peer campaigns, case management, and much more.CiviCRM is localized in over 20 languages including: Chinese (Taiwan, China), Dutch, English (Australia, Canada, U.S., UK), French (France, Canada), German, Italian, Japanese, Russian, and Swedish.CiviCRM Cookbook will enhance your CiviCRM skills. It has recipes to help you use CiviCRM more efficiently, integrate it with CMSs, and also develop CiviCRM.This book begins with recipes that help save time and effort with CiviCRM. This is followed by recipes for organizing data more efficiently and managing profiles.Then you will learn authentication and authorization and managing communication with contacts.Then you will be guided on using the searching feature and preparing reports. We will then talk about integrating Drupal and CiviCRM. You will also be taught to manage events effectively. Finally, learn about CiviCampaign, Civimember, and developing CiviCRM.
Table of Contents (19 chapters)
CiviCRM Cookbook
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
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.

  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 it works…

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

CiviCRM also provides error checking...