Interface ApiConfigResolved

API 配置

interface ApiConfigResolved {
    accessToken: string;
    appVersion: string;
    beforeRequest: BeforeRequestHook;
    beforeRetry: ((state: BeforeRetryState) => boolean | Promise<boolean>);
    buildNo: string;
    bundleId: string;
    deviceId: string;
    endpointId: string;
    endpointUrl: string;
    idfv: string;
    userAgent: string;
}

Properties

accessToken: string

access-token

appVersion: string

App 版本

beforeRequest: BeforeRequestHook
beforeRetry: ((state: BeforeRetryState) => boolean | Promise<boolean>)

是否重试

buildNo: string

构建 ID

bundleId: string

APP ID

deviceId: string

设备 ID

endpointId: string

接入点 ID

endpointUrl: string

接入点 URL

idfv: string

idfv

userAgent: string

User-Agent 请求头