Skip to content

A php utility for using the Church Community Builder API

License

Notifications You must be signed in to change notification settings

thisanimus/ccb-api-connect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CCB API Connect

Connect to the Church Community Builder API. Use both GET and POST to interact with the CCB database. Handy documentation at https://www.ccbtutorials.com.

Installation - Compser

$ composer require thisanimus/ccb-api-connect

Config

Create a new CCB API instance by passing your API user creds to the \CCB\Api class.

$ccb = new \CCB\Api('YourApiUsername', 'YourApiPassword', 'https://YourChurchName.ccbchurch.com/api.php');

Requests

Make a request by passing parameters to the request method. Specify:

  • Any query params as an associative array.
  • Any curl data as an associative array.
  • The request type (GET/POST).

In this example, we are requesting an individual's profile using their login/password.

$query = [
	'srv' => 'individual_profile_from_login_password'
	];

$data = [
	'login' => 'ccbAccountUsername',
	'password' => 'ccbAccountPassword'
	];

$response = $ccb->request($query, $data, 'POST');

About

A php utility for using the Church Community Builder API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages