openlark-platform 0.18.0

飞书开放平台服务模块 - 应用管理、目录服务、系统管理 API (95 APIs)
Documentation

OpenLark 平台服务模块

OpenLark SDK 的平台服务模块,提供飞书平台管理相关 API 的完整访问。

功能特性

  • 应用引擎: 应用管理、多租户、应用市场集成
  • 目录服务: 用户搜索、组织目录、人员查找
  • 系统管理: 系统配置、后台管理、平台工具

模块组织

本模块按业务域(bizTag)组织,分两类入口(ADR 0001):

  • Service accessor 入口(含路径参数绑定层,经 PlatformService::xxx()): app_engine(37 APIs)、directory(21 APIs)、admin(14 APIs)、spark(1 API)
  • flat-by-design 直路径(叶子 new(Config) 无路径参数,无 Service 壳,同 analytics 裁决): mdmtenanttrust_party

使用示例

use openlark_platform::PlatformService;
use openlark_core::prelude::Config;

# fn example() -> Result<(), Box<dyn std::error::Error>> {
// 使用 builder 模式创建配置
let config = Config::builder()
    .app_id("app_id")
    .app_secret("app_secret")
    .build();

let platform_service = PlatformService::new(config);

// 具体功能请参考各个子模块的文档
# Ok(())
# }