ListHotTopicSummaries
This API retrieves the complete broadcast list (hot list) for the Alibaba Cloud Model Studio Light Application’s In-car/Content Platform Hot News Interaction. It returns all associated content.
Operation description
This interface retrieves all content in the complete broadcast list (hot list), including channels, hot topics, hotness values, and broadcast summaries. By default, it returns the latest version of the broadcast list. By specifying a version, you can retrieve the content of a system version or custom version of the broadcast list for a specified time period.
We recommend that you use the latest GetHotTopicBroadcast interface, whose input and output parameters are more comprehensive.
You can try this operation in the console.
To call this API by using an SDK, see the Java and Python examples on the API tab in the console.
Debugging
You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After a successful run, OpenAPI Explorer can automatically generate SDK code examples.
RAM authorization
The following table describes the authorization information for this API. You can use the Action element in RAM permission policy statements to grant RAM users or RAM roles the permission to call this API. Details are as follows:
-
Action: the specific permission point.
-
Access level: the access level of each operation. Valid values: Write, Read, and List.
-
Resource type: the resource types supported for authorization in the operation. Details are as follows:
- For required resource types, an asterisk (*) is prefixed.
- For operations that do not support resource-level authorization,
All Resourcesis displayed.
-
Condition key: the condition keys defined by the cloud service itself.
-
Dependent action: other permissions required to successfully perform the operation. The operator must have the permissions of the dependent actions as well for the operation to succeed.
| Action | Access level | Resource type | Condition key | Dependent action |
|---|---|---|---|---|
| quanmiaolightapp:ListHotTopicSummaries | list | *All Resources * |
| None |
Request syntax
POST /{workspaceId}/quanmiao/lightapp/listHotTopicSummaries HTTP/1.1
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| workspaceId | string | Yes | The unique identifier of the Model Studio workspace. You can obtain it from the top-left corner of the Model Studio home page. | llm-xxx |
| category | string | No | Category | xx |
| hotTopic | string | No | Hot topic | xx |
| hotTopicVersion | string | No | Hot topic version | 2024-09-13_12 |
| nextToken | string | No | Token for the next page | JlroP3CjgQh5PQDlH3ArzADkBTPZgVqo+64jhZRglNq0mEYoV5SlGb/Juvo8CdfYE9rlwEr2pIJQwdaYotak9g== |
| maxResults | integer | No | Maximum number of results returned per page. Note Default is 100. Maximum is 1000. | 20 |
Response parameters
| Element | Type | Description | Example |
|---|---|---|---|
| object | Schema of Response | ||
| code | string | Status code | xx |
| data | array<object> | Hot topic information list | |
| data | object | Hot topic information | |
| category | string | Hot topic category | Finance |
| hotTopic | string | Hot topic name | xx |
| hotTopicVersion | string | Hot topic summary version | 2024-09-13_12 |
| hotValue | double | Hotness value | 1000000 |
| id | string | Hot topic ID | db5dc5b3d8954a30b65ba700c9dda3bb |
| news | array<object> | Article list | |
| news | object | Article | |
| comments | array<object> | Structured summary list | |
| comments | object | Structured summary | |
| text | string | Content | xx |
| content | string | Body text | xx |
| pubTime | string | Publish time | 2024-09-10 15:32:00 |
| title | string | Title | xx |
| url | string | url | http://xxx |
| summary | object | Hot topic structured summary | |
| summaries | array<object> | Structured summary list | |
| summaries | object | Structured summary | |
| summary | string | Summary | xx |
| title | string | Title | xx |
| textSummary | string | Hot topic text summary | xx |
| httpStatusCode | integer | HTTP status code | 200 |
| maxResults | integer | Maximum number of returned results | 20 |
| message | string | Error description | success |
| nextToken | string | Token for the next page | JlroP3CjgQh5PQDlH3ArzADkBTPZgVqo+64jhZRglNq0mEYoV5SlGb/Juvo8CdfYE9rlwEr2pIJQwdaYotak9g== |
| requestId | string | Unique request ID | 117F5ABE-CF02-5502-9A3F-E56BC9081A64 |
| success | boolean | Whether the request is successful: true for success, false for failure | True |
| totalCount | integer | Total count | 200 |
Examples
Success response
JSON format
{
"code": "xx",
"data": [
{
"category": "财经",
"hotTopic": "xx",
"hotTopicVersion": "2024-09-13_12",
"hotValue": 1000000,
"id": "db5dc5b3d8954a30b65ba700c9dda3bb",
"news": [
{
"comments": [
{
"text": "xx"
}
],
"content": "xx",
"pubTime": "2024-09-10 15:32:00",
"title": "xx",
"url": "http://xxx"
}
],
"summary": {
"summaries": [
{
"summary": "xx",
"title": "xx"
}
]
},
"textSummary": "xx"
}
],
"httpStatusCode": 200,
"maxResults": 20,
"message": "success",
"nextToken": "JlroP3CjgQh5PQDlH3ArzADkBTPZgVqo+64jhZRglNq0mEYoV5SlGb/Juvo8CdfYE9rlwEr2pIJQwdaYotak9g==",
"requestId": "117F5ABE-CF02-5502-9A3F-E56BC9081A64",
"success": true,
"totalCount": 200
}
Error codes
See the Error Center for more error codes.