Interface ApiConfigResolved

API 配置

interface ApiConfigResolved {
    accessToken: string;
    appVersion: string;
    beforeRequest: BeforeRequestHook;
    beforeRetry: ((state) => 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) => boolean | Promise<boolean>)

是否重试

Type declaration

    • (state): boolean | Promise<boolean>
    • Parameters

      • state: BeforeRetryState

      Returns 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 请求头