定制 limingxinleo/feishu 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

limingxinleo/feishu

最新稳定版本:v4.2.0

Composer 安装命令:

composer require limingxinleo/feishu

包简介

飞书SDK

关键字:

README 文档

README

PHPUnit

composer require limingxinleo/feishu

使用

具体使用方法请查看 飞书文档

快速开始

Hyperf 框架中,可以直接使用 Fan\Feishu\Factory

  1. 发布配置
php bin/hyperf.php vendor:publish limingxinleo/feishu
  1. 注入并使用
<?php

use Fan\Feishu\Factory;
use Hyperf\Di\Annotation\Inject;

class IndexController
{
    #[Inject]
    public Factory $factory;
    
    public function index()
    {
        return $this->factory->get('default')->contact->batchGetUserId(emails: ['l@hyperf.io']);
    }
}

其他框架,可以自行 new Application() 使用。

<?php

use Fan\Feishu\Application;

$app = new Application([
    'app_id' => 'xxx',
    'app_secret' => 'xxx',
    'http' => [
        'base_uri' => 'https://open.feishu.cn',
        'http_errors' => false,
        'timeout' => 2,
    ],
]);

$result = $app->contact->batchGetUserId(emails: ['l@hyperf.io']);

统计信息

  • 总下载量: 10.92k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 26
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 26
  • Watchers: 1
  • Forks: 8
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-06-29