Skip to content

今日头条飞鱼CRM系统的拉取数据与回传数据接口加密调用方法

License

Notifications You must be signed in to change notification settings

liamhao/FeiYuCRM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FeiYuCRM

今日头条飞鱼CRM接口加密调用类

PHP Composer Build Status Latest Stable Version Total Downloads License Code Coverage

安装

$ 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,
]);

About

今日头条飞鱼CRM系统的拉取数据与回传数据接口加密调用方法

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages