thisanimus/ccb-api-connect
Composer 安装命令:
composer create-project thisanimus/ccb-api-connect
包简介
A utility for interacting with the Church Community Builder API.
README 文档
README
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');
统计信息
- 总下载量: 364
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-05-24