Skip to content
Bitzsoft.Integrationsbitzsoft.integrations

Reference

启信宝

启信宝包的 QixinOptions 配置字段、AppKey/SecretKey 鉴权与使用示例。

Last updated

包信息

属性
NuGet 包Bitzsoft.Integrations.EnterpriseInfo.Qixin
Provider IDqixin
鉴权AppKey + SecretKey

配置字段(QixinOptions)

字段类型必填默认值说明
AppKeystring启信宝开放平台 AppKey
SecretKeystring启信宝开放平台 SecretKey
BaseUrlstringhttps://api.qixin.com/APIServiceAPI 基础地址
HttpClientNamestringQixinEnterpriseInfoProvider命名 HttpClient

配置示例

{
"EnterpriseInfo": {
"Qixin": {
"AppKey": "your-app-key",
"SecretKey": "your-secret-key"
}
}
}

DI 注册

builder.Services.AddBitzsoftQixinEnterpriseInfo(builder.Configuration.GetSection("EnterpriseInfo:Qixin"));

使用示例

public class QixinService(IEnterpriseInfoProvider info)
{
public async Task<EnterpriseRiskSummary> GetRiskAsync(string creditCode)
{
return await info.GetRiskSummaryAsync(creditCode);
}
public async Task<IReadOnlyList<EnterpriseShareholderInfo>> GetShareholdersAsync(string creditCode)
{
return await info.GetShareholdersAsync(creditCode);
}
}

已知限制

  • 启信宝 API 的签名为时间戳 + AppKey + SecretKey 拼接后做哈希。

相关

100%

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