cars24 / pipedrive
Pipedrive CRM 的 API 客户端库
1.5.0
2018-02-22 06:03 UTC
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2024-09-29 03:15:29 UTC
README
PHP API 客户端库用于 PipeDrive CRM
仅添加了当前项目所需的一些基本功能。然而,基本模块旨在利用整个 API,包括文件上传。
建议您通过 composer 安装此库。 https://packagist.org.cn/packages/benhawker/pipedrive
API 文档可在此处找到: https://developers.pipedrive.com/v1
示例
use Benhawker\Pipedrive\Pipedrive; $pipedrive = new Pipedrive('0deceea867202fcf3889cd507ef93a91789f7e3a'); //add user $person['name'] = 'John Smith'; $person = $pipedrive->persons()->add($person); //add note to user $note['content'] = 'example note'; $note['person_id'] = $person['data']['id']; $pipedrive->notes()->add($note); //add deal to user deal['title'] = 'example title'; $deal['stage_id'] = 8; $deal['person_id'] = $person['data']['id']; $pipedrive->deals()->add($deal); //add activity $activity = array( 'subject' => 'Example send brochure', 'type' => 'send-brochure', 'person_id' => 17686, 'user_id' => 190870, 'deal_id' => 88, 'due_date' => date('Y-m-d') ); $pipedrive->activities()->add($activity);