thomasfaure / pipedrive
Pipedrive CRM 的 API 客户端库
0.1.2
2022-02-07 13:37 UTC
Requires
- php: >=5.3.0
This package is auto-updated.
Last update: 2024-09-07 21:39:46 UTC
README
用于 PipeDrive CRM 的 PHP API 客户端库
只添加了当前项目所需的一些基本功能。然而,基本模块是为了利用整个 API,包括文件上传。
建议您通过 composer 安装此库。 https://packagist.org.cn/packages/thomasfaure/pipedrive
API 文档可以在以下位置找到: https://developers.pipedrive.com/v1
示例
use ThomasFaure\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);