@acoustic-content-sdk/redux-ajax 中文文档教程

发布于 4年前 浏览 12 更新于 3年前

npm

针对声学内容执行 fetchText 和 writeText 回调。

API Documentation

Home > @acoustic-content-sdk/redux-ajax

redux-ajax package

fetchTextwriteText 回调的实现。

Functions

FunctionDescription
fetchTextAjax(apiBase, aLoggerService)Creates a callback function that loads content via HTTP GET from the API routes.
writeJsonAjax(apiBase, aLoggerService)Creates a callback function that writes content to API routes via PUST, POST or delete

Variables

VariableDescription
VERSIONVersion and build number of the package

Home > @acoustic-content-sdk/redux-ajax > fetchTextAjax

fetchTextAjax() function

创建一个回调函数,通过 HTTP GET 从 API 路由加载内容。

Signature:

export declare function fetchTextAjax(apiBase: StaticHubInfoUrlProvider | PromiseLike<StaticHubInfoUrlProvider>, aLoggerService?: LoggerService): FetchText;

Parameters

ParameterTypeDescription
apiBaseStaticHubInfoUrlProvider &#124; PromiseLike&lt;StaticHubInfoUrlProvider&gt;the API URL.
aLoggerServiceLoggerService

Returns:

FetchText

the callback function

首页 > @acoustic-content-sdk/redux-ajax > writeJsonAjax

writeJsonAjax() function

创建一个回调函数,通过 PUST、POST 或删除将内容写入 API 路由

签名:

export declare function writeJsonAjax(apiBase: StaticHubInfoUrlProvider | PromiseLike<StaticHubInfoUrlProvider>, aLoggerService?: LoggerService): WriteText;

Parameters

ParameterTypeDescription
apiBaseStaticHubInfoUrlProvider &#124; PromiseLike&lt;StaticHubInfoUrlProvider&gt;the API URL.
aLoggerServiceLoggerService

返回:

<代码>WriteText

the callback function

Home > @acoustic-content-sdk/redux-ajax > VERSION

VERSION variable

软件包的版本和构建号

签名:

VERSION: {
    version: {
        major: string;
        minor: string;
        patch: string;
        branch: string;
    };
    build: Date;
}

npm

Implementation of the fetchText and writeText callbacks against Acoustic Content.

API Documentation

Home > @acoustic-content-sdk/redux-ajax

redux-ajax package

Implementation of the fetchText and writeText callbacks.

Functions

FunctionDescription
fetchTextAjax(apiBase, aLoggerService)Creates a callback function that loads content via HTTP GET from the API routes.
writeJsonAjax(apiBase, aLoggerService)Creates a callback function that writes content to API routes via PUST, POST or delete

Variables

VariableDescription
VERSIONVersion and build number of the package

Home > @acoustic-content-sdk/redux-ajax > fetchTextAjax

fetchTextAjax() function

Creates a callback function that loads content via HTTP GET from the API routes.

Signature:

export declare function fetchTextAjax(apiBase: StaticHubInfoUrlProvider | PromiseLike<StaticHubInfoUrlProvider>, aLoggerService?: LoggerService): FetchText;

Parameters

ParameterTypeDescription
apiBaseStaticHubInfoUrlProvider &#124; PromiseLike&lt;StaticHubInfoUrlProvider&gt;the API URL.
aLoggerServiceLoggerService

Returns:

FetchText

the callback function

Home > @acoustic-content-sdk/redux-ajax > writeJsonAjax

writeJsonAjax() function

Creates a callback function that writes content to API routes via PUST, POST or delete

Signature:

export declare function writeJsonAjax(apiBase: StaticHubInfoUrlProvider | PromiseLike<StaticHubInfoUrlProvider>, aLoggerService?: LoggerService): WriteText;

Parameters

ParameterTypeDescription
apiBaseStaticHubInfoUrlProvider &#124; PromiseLike&lt;StaticHubInfoUrlProvider&gt;the API URL.
aLoggerServiceLoggerService

Returns:

WriteText

the callback function

Home > @acoustic-content-sdk/redux-ajax > VERSION

VERSION variable

Version and build number of the package

Signature:

VERSION: {
    version: {
        major: string;
        minor: string;
        patch: string;
        branch: string;
    };
    build: Date;
}
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文