@acoustic-content-sdk/redux-ajax 中文文档教程
针对声学内容执行 fetchText 和 writeText 回调。
Home > @acoustic-content-sdk/redux-ajax
redux-ajax package
fetchText
和 writeText
回调的实现。
Functions
Function | Description |
---|---|
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
Variable | Description |
---|---|
VERSION | Version 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
Parameter | Type | Description |
---|---|---|
apiBase | StaticHubInfoUrlProvider | PromiseLike<StaticHubInfoUrlProvider> | the API URL. |
aLoggerService | LoggerService |
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
Parameter | Type | Description |
---|---|---|
apiBase | StaticHubInfoUrlProvider | PromiseLike<StaticHubInfoUrlProvider> | the API URL. |
aLoggerService | LoggerService |
返回:
<代码>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;
}
Implementation of the fetchText and writeText callbacks against Acoustic Content.
Home > @acoustic-content-sdk/redux-ajax
redux-ajax package
Implementation of the fetchText
and writeText
callbacks.
Functions
Function | Description |
---|---|
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
Variable | Description |
---|---|
VERSION | Version 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
Parameter | Type | Description |
---|---|---|
apiBase | StaticHubInfoUrlProvider | PromiseLike<StaticHubInfoUrlProvider> | the API URL. |
aLoggerService | LoggerService |
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
Parameter | Type | Description |
---|---|---|
apiBase | StaticHubInfoUrlProvider | PromiseLike<StaticHubInfoUrlProvider> | the API URL. |
aLoggerService | LoggerService |
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;
}