DingTalkApiClient 1.1.1

dotnet add package DingTalkApiClient --version 1.1.1
                    
NuGet\Install-Package DingTalkApiClient -Version 1.1.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DingTalkApiClient" Version="1.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DingTalkApiClient" Version="1.1.1" />
                    
Directory.Packages.props
<PackageReference Include="DingTalkApiClient" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DingTalkApiClient --version 1.1.1
                    
#r "nuget: DingTalkApiClient, 1.1.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package DingTalkApiClient@1.1.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DingTalkApiClient&version=1.1.1
                    
Install as a Cake Addin
#tool nuget:?package=DingTalkApiClient&version=1.1.1
                    
Install as a Cake Tool

DingTalkApiClient

钉钉新版 OpenAPI 的强类型 C# 接口定义,适用于访问 https://api.dingtalk.com/ 的接口。

安装

dotnet add package DingTalkApiClient

项目支持 net8.0 和 net10.0。

适用范围

本包包含新版 API 接口及请求、响应模型。新版接口通常使用 /v1.0 等版本前缀,并通过请求头传递 x-acs-dingtalk-access-token。

依赖注入和访问令牌自动刷新功能由 DingTalkApiClient.Hosting 提供:

dotnet add package DingTalkApiClient.Hosting
using DingTalkApiClient;

builder.Services.AddDingTalk(builder.Configuration);

旧版 https://oapi.dingtalk.com/ 接口请使用 DingTalkApiClient.Legacy。

已实现的新版 API 接口

主包目前提供以下新版 OpenAPI 强类型接口定义;安装 DingTalkApiClient.Hosting 并调用 AddDingTalk 后即可通过依赖注入使用:

  • 访问令牌:IAccessTokenApi
  • 应用与工作台:IApplicationManagementApi、IWorkbenchApi
  • 考勤:IAttendanceMachinesV1Api、IAttendanceSettingsApi
  • 音视频:IVideoConferencesApi、ILiveApi、IMeetingRoomsApi
  • 徽章:IBadgeApi
  • 黑板报:IBlackboardV1Api
  • 日历:ICalendarApi
  • 卡片:ICardInstancesApi
  • 联系人:IEmployeeRecordsApi、ISeniorSettingsApi、IStaffAttributesApi、IOrgAccountsApi、IContactSettingsApi、IContactUsersApi、ICooperateCorpsApi
  • CRM:ICrmApi
  • 文档文件:IDocumentFileApi
  • 生态开放:IEcosystemApi
  • 独立开放:IExclusiveOpenApi
  • 人力资源:IHumanResourcesApi
  • 行业开放:IIndustryOpenApi
  • IM 与群机器人:IRobotApi、ISceneGroupApi、IInteractiveCardApi、IInterconnectionsApi
  • 组织文化:IOrgCultureApi
  • 服务窗:IServiceWindowApi
  • 智能填表:ISmartFillApi
  • Teambition 项目:ITeambitionProjectApi
  • 待办:ITodoApi
  • 宜搭:IYidaApi
  • 工作流:IWorkflowApi

上述业务接口继承自通用接口 IDingTalkHeaderTokenApi;IDingTalkApiClient 为所有新版接口的基础标记接口。

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on DingTalkApiClient:

Package Downloads
DingTalkApiClient.Legacy

钉钉 API 接口对接库

DingTalkApiClient.Hosting.Core

钉钉 API 接口对接库

DingTalkApiClient.Hosting

钉钉 API 接口对接库

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.1 247 7/22/2026
1.1.0 202 7/21/2026
1.0.1 152 6/3/2026
0.0.1-alpha 701 4/9/2019 0.0.1-alpha is deprecated because it is no longer maintained.