lzw/zto

There is no license information available for the latest version (v1.4) of this package.

v1.4 2023-07-24 08:16 UTC

This package is auto-updated.

Last update: 2025-06-24 12:44:02 UTC


README

// 安装
composer require lzw/zto

// 发布
php artisan vendor:publish --provider="Lzw\ZentaoToOther\ZentaoToOtherProvider"

禅道api

$zto = new ZentaoToOther();
$zto->zentaoSdk()->get('departments'); //Http::post/get

飞书api

$zto = new ZentaoToOther();
$app_token = config('zto.feishu.app_token');
$table_id = $zto->feishuSdk()->getDataTableId(); // 数据表id
$zto->feishuSdk()->post("open-apis/bitable/v1/apps/{$app_token}/tables/{$table_id}/records"); //Http::post/get/put

创建飞书数据表

$zto = new ZentaoToOther();
$zto->createFeishuTable();
// 返回的数据表id 默认存入缓存中,需手动填写入env或config中以防数据丢失

禅道hook

Route::post('/hook', function (Request $request) {
    $zto = new ZentaoToOther();
    Log::info($request->all());
    $zto->zentaoHook($request->all());
    return 'success';
});