2 Star 1 Fork 1

法大大/fasc-openapi-node-sdk

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
interface.ts 1.57 KB
一键复制 编辑 原始数据 按行查看 历史
import { SignMethod } from "./models"
/** client对象参数类型 */
export interface ClientConfig {
/**
* @param {Credential} credential - 认证信息
*/
credential: Credential
/**
* @type {string} -服务请求地址
*/
serverUrl: string
/**
* @param {ClientProfile} ClientProfile - 可选配置项
*/
profile?: ClientProfile
}
/** 认证信息 */
export interface Credential {
/**
* @type {string} - 法大大平台(FASC-OPENAPI)为每个应用生成唯一的标识AppId,用于在API接口对接时识别不同的应用系统
*/
appId: string
/**
* @type {string} - 法大大平台(FASC-OPENAPI)为每个应用生成唯一的安全访问秘钥,和AppId组成<AppId,AppSecret>对,用于接入认证和参数签名
*/
appSecret: string
/**
* @type {string} - 法大大平台(FASC-OPENAPI)服务访问凭证
*/
accessToken?: string
}
export interface ProxyProfile {
/**
* @type {boolean} - 是否打开代理
*/
proxyFlag?: boolean
/**
* @type {string} - 代理ip
*/
proxyHost?: string
/**
* @type {number} - 代理端口
*/
proxyPort?: number
}
/** 可选配置项 */
export interface ClientProfile {
/**
* @type {string} - 签名方法(HMAC-SHA256)
*/
signMethod?: SignMethod
/**
* @type {number} - 请求超时时间,默认 60s
*/
reqTimeout?: number
/**
* @type {proxyProfile} 代理配置
*/
proxyProfile?: ProxyProfile
/**
* @type {"zh-CN" | "en-US"} - api 请求时附带的 language 字段
* 非必选
*/
language?: "zh-CN" | "en-US"
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/fadada-cloud/fasc-openapi-node-sdk.git
git@gitee.com:fadada-cloud/fasc-openapi-node-sdk.git
fadada-cloud
fasc-openapi-node-sdk
fasc-openapi-node-sdk
v5.1

搜索帮助