lasserafn / laravel-pipedrive
0.95
2018-03-01 09:26 UTC
Requires
- php: >=5.4.0
- guzzlehttp/guzzle: ^6.2
- illuminate/support: 5.0.* || 5.1.* || 5.2.* || 5.3.* || 5.4.* || 5.5.* || 5.6.*
- dev-master
- 0.95
- 0.94
- 0.93
- 0.92
- 0.91
- 0.90
- 0.85
- 0.84
- 0.83
- 0.82
- 0.81
- 0.8
- 0.7.1.0
- 0.7.0.9
- 0.7.0.8
- 0.7.0.7
- 0.7.0.6
- 0.7.0.5
- 0.7.0.4
- 0.7.0.3
- 0.7.0.2
- 0.7.0.1
- 0.7.0.0
- 0.6.9.99
- 0.6.9.98
- 0.6.9.97
- 0.6.9.96
- 0.6.9.95
- 0.6.9.9
- 0.6.9.8
- 0.6.9.7
- 0.6.9.6
- 0.6.9.5
- 0.6.9
- 0.6.8
- 0.6.7.1
- 0.6.7.00
- 0.6.6
- 0.6.5
- 0.6.4
- 0.6.3
- 0.6.2
- 0.6.1
- 0.6.0
- 0.5.1
- 0.5
This package is auto-updated.
Last update: 2024-09-08 22:19:05 UTC
README
安装
- 需要使用 composer
composer require lasserafn/laravel-pipedrive
- (对于 laravel 5.4 及以下版本) 将 PipedriveServiceProvider 添加到你的
config/app.php
提供者数组中。
'providers' => [ \LasseRafn\Pipedrive\PipedriveServiceProvider::class, ]
- 发布配置文件。
php artisan vendor:publish --provider "LasseRafn\Pipedrive\PipedriveServiceProvider"
使用方法
创建 Pipedrive 实例
$pipedrive = new \LasseRafn\Pipedrive\Pipedrive($APIKEY); // or set the api key in the config/pipedrive.php file.
要找到你的 API 密钥,你必须登录到 Pipedrive 并导航到 设置 -> 个人 -> Api (/settings#api)
获取所有人员
$pipedrive->persons()->all(); // Returns a collection of Person models.
通过 ID 查找人员
$pipedrive->persons()->find(1); // Returns a Person model.
获取未完成的活动的列表
过滤器由数组数组组成。第一个参数是包含的字段,留空 null
以保持默认值。
$pipedrive->activities()->all(null, [ [ 'done' => 0 ] ]);
(后续版本将切换到单个数组键 => 值)。
支持的端点
... 待办事项
测试
... 待办事项