Skip to content
Bitzsoft.Integrationsbitzsoft.integrations

Reference

Adobe Sign 电子签章

Adobe Acrobat Sign 电子签章服务——OAuth2 Bearer Token 鉴权,/agreements API。

Last updated

基于 Adobe Acrobat Sign REST API v6 实现,通过 OAuth2 Bearer Token 访问 /agreements 端点。

包信息

  • NuGet 包:Bitzsoft.Integrations.ElectronicSignature.AdobeSign
  • 接口:IElectronicSignatureProvider
  • 鉴权:OAuth2 Bearer Token
  • Provider ID:AdobeSign

配置

字段类型必填默认值说明
BaseUrlstringhttps://api.na1.adobesign.com/api/rest/v6分片地址(NA1 / EU1 / JP1 等)
AccessTokenstringOAuth2 Bearer 访问令牌
ApiUserEmailstring?默认发起方邮箱(部分端点要求 X-API-User 头)
TimeoutTimeSpan00:00:30HTTP 请求超时
HttpClientNamestringAdobeSignElectronicSignatureProvider命名 HttpClient 标识
{
"AdobeSign": {
"BaseUrl": "https://api.na1.adobesign.com/api/rest/v6",
"AccessToken": "your-access-token",
"ApiUserEmail": "sender@example.com"
}
}

注册

using Bitzsoft.Integrations.ElectronicSignature.AdobeSign;
// 方式一:IConfiguration(默认读取 "AdobeSign" 配置节)
services.AddBitzsoftAdobeSignElectronicSignature(configuration);
// 方式二:委托配置
services.AddBitzsoftAdobeSignElectronicSignature(options =>
{
options.BaseUrl = "https://api.na1.adobesign.com/api/rest/v6";
options.AccessToken = "your-access-token";
options.ApiUserEmail = "sender@example.com";
});

使用示例

var createResult = await provider.CreateContractAsync(new SimpleContractRequest
{
Title = "NDA",
FileName = "nda.pdf",
FileData = await File.ReadAllBytesAsync("nda.pdf"),
SignerName = "Jane Smith",
SignerPhone = "jane@example.com"
});
var contractId = createResult.Data!;
var detail = await provider.GetContractDetailAsync(contractId);
var viewUrl = await provider.GetContractViewUrlAsync(contractId);

鉴权机制

  • 每个 API 请求通过 Authorization: Bearer {token} 头携带 OAuth2 访问令牌。
  • 建议先调用 /baseUris 获取当前用户所在分片,再据此切换 BaseUrl

已知限制

不包含 Token 自动刷新;调用方需自行管理令牌生命周期,过期后更新 AccessToken 配置值。

100%

滚轮或按钮缩放 · 放大后拖动画面 · 双击切换 100% / 200%