haosijia / feiyu-crm
FeiYu CRM System Interface Encryption Class
2.5
2019-10-18 06:50 UTC
This package is auto-updated.
Last update: 2024-06-06 20:09:01 UTC
README
今日头条飞鱼CRM接口加密调用类
安装
$ composer require haosijia/feiyu-crm
使用
<?php use FeiYuCRM\FeiYu; $feiyu = new FeiYu([ 'host' => 'https://feiyu.oceanengine.com', 'pull_route' => '/crm/v2/openapi/pull-clues/', 'push_route' => '/crm/v2/openapi/clue/callback/', 'signature_key' => 'ABCDEFGHIGKLMNOP', 'token' => '01234567890123abcdefghijklmnopqrstuvwxyz', ]); // 拉取数据方法案例 $feiyu->pullData('2019-08-01', '2019-09-01', 100)->run(function($customers){ foreach ($customers as $customer) { // run yourself function print_r($customer); die; } }); // 回传数据方法案例 $res = $feiyu->pushData([ 'clue_id' => '1234567891234567891', 'clue_convert_state' => 3, ]);