DingTalkApiClient.Legacy 1.1.1

dotnet add package DingTalkApiClient.Legacy --version 1.1.1
                    
NuGet\Install-Package DingTalkApiClient.Legacy -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.Legacy" Version="1.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DingTalkApiClient.Legacy" Version="1.1.1" />
                    
Directory.Packages.props
<PackageReference Include="DingTalkApiClient.Legacy" />
                    
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.Legacy --version 1.1.1
                    
#r "nuget: DingTalkApiClient.Legacy, 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.Legacy@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.Legacy&version=1.1.1
                    
Install as a Cake Addin
#tool nuget:?package=DingTalkApiClient.Legacy&version=1.1.1
                    
Install as a Cake Tool

DingTalkApiClient.Legacy

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

安装

dotnet add package DingTalkApiClient.Legacy

项目支持 net8.0net10.0

适用范围

本包包含旧版接口及请求、响应模型。旧版接口通常使用 /topapi/... 或其他没有版本前缀的路径,并通过 URL 查询参数传递 access_token

在 ASP.NET Core 中使用依赖注入和访问令牌自动刷新功能时,安装 DingTalkApiClient.Legacy.Hosting

dotnet add package DingTalkApiClient.Legacy.Hosting
using DingTalkApiClient;
using DingTalkApiClient.Legacy.Hosting;

builder.Services.AddDingTalkLegacy(builder.Configuration);

已实现的旧版 API 接口

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

  • 认证:ISsoAuthApi
  • 考勤与打卡:IAttendanceApprovalsApiIAttendanceGroupsApiIAttendanceMachinesApiIAttendanceRecordsApiIAttendanceReportsApiIAttendanceSchedulesApiIAttendanceShiftsApiIAttendanceVacationsApiICheckinApi
  • 通讯录与组织:IUserManageApiIDepartmentManageApiIRoleManageApiIExternalContactsApiIIndustryContactsApiIAuthScopesApiIUnionCooperateApi
  • IM:IChatApiICorpConversationApi
  • 黑板报:IBlackboardApi
  • CRM:ICrmTopApi
  • 生态开放:IEcosystemTopApi
  • 事件订阅:IEventSubscriptionApi
  • 独立开放:IExclusiveOpenServiceAccountApi
  • 人力资源:IHumanResourcesTopApi
  • 行业开放:IIndustryOpenTopApi
  • 组织文化:IOrgCultureHealthApi
  • 智能设备:ISmartDeviceApi
  • Teambition:ITeambitionWorkspaceTopApi
  • 报表:IReportApi

上述业务接口继承自 IDingTalkQueryTokenApi,通过 URL 查询参数传递 access_token;该接口继承自通用基础接口 IDingTalkApiClient

新版 https://api.dingtalk.com/ 接口请使用 DingTalkApiClient

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 (1)

Showing the top 1 NuGet packages that depend on DingTalkApiClient.Legacy:

Package Downloads
DingTalkApiClient.Legacy.Hosting

钉钉 API 接口对接库

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.1 135 7/22/2026
1.1.0 131 7/21/2026