ListHotNewsWithType

更新时间:
复制 MD 格式

获取选题热点列表。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。

  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。

  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:

    • 对于必选的资源类型,用前面加 * 表示。
    • 对于不支持资源级授权的操作,用全部资源表示。
  • 条件关键字:是指云产品自身定义的条件关键字。

  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。

操作

访问级别

资源类型

条件关键字

关联操作

aimiaobi:ListHotNewsWithType

list

*全部资源

*

无无

请求参数

名称

类型

必填

描述

示例值

AgentKey

string

是

业务空间唯一标识: AgentKey

c160c841c8e54295bf2f441432785944_p_efm

NewsType

string

否

新闻类别。society: 社会时事,person: 人物新闻,government: 党政时事

society

NewsTypes

array

否

新闻类别列表多选。society: 社会时事,person: 人物新闻,government: 党政时事

string

否

新闻类别

society

Size

integer

否

每页记录数

10

Current

integer

否

当前页码

1

返回参数

名称

类型

描述

示例值

object

PlainResult<List

>

Code

string

状态码

successful

Data

array<object>

业务数据

array<object>

News

array<object>

新闻列表

object

Author

string

作者

作者名称

Content

string

内容

新闻内容

DocUuid

string

内部文档唯一标识

3f7045e099474ba28ceca1b4eb6d6e21

ImageUrls

array

图片地址

string

新闻图像的 URL。

http://www.example.com/a.jpg

PubTime

string

发布时间

2023-04-11 06:14:07

SearchSource

string

搜索源

新浪热榜

SearchSourceName

string

搜索源名称

新浪热榜

Source

string

来源

新浪新闻综合

Summary

string

文章摘要

摘要

Tag

string

标签

社会

Title

string

标题

新闻标题

UpdateTime

string

系统更新时间

2023-10-14 14:30:00

Url

string

文章 URL

http://www.example.com/a.html

NewsType

string

新闻类别。society: 社会时事,person: 人物新闻,government: 党政时事

society

NewsTypeName

string

新闻类别名称

社会时事

TotalPages

integer

总页数

77

HttpStatusCode

integer

http 状态码

200

Message

string

错误说明

successful

RequestId

string

请求唯一标识

3f7045e099474ba28ceca1b4eb6d6e21

Success

boolean

是否成功:true 成功,false 失败

true

示例

正常返回示例

JSON格式

{
  "Code": "successful",
  "Data": [
    {
      "News": [
        {
          "Author": "作者名称",
          "Content": "新闻内容",
          "DocUuid": "3f7045e099474ba28ceca1b4eb6d6e21",
          "ImageUrls": [
            "http://www.example.com/a.jpg"
          ],
          "PubTime": "2023-04-11 06:14:07",
          "SearchSource": "新浪热榜",
          "SearchSourceName": "新浪热榜",
          "Source": "新浪新闻综合",
          "Summary": "摘要",
          "Tag": "社会",
          "Title": "新闻标题",
          "UpdateTime": "2023-10-14 14:30:00",
          "Url": "http://www.example.com/a.html"
        }
      ],
      "NewsType": "society",
      "NewsTypeName": "社会时事",
      "TotalPages": 77
    }
  ],
  "HttpStatusCode": 200,
  "Message": "successful",
  "RequestId": "3f7045e099474ba28ceca1b4eb6d6e21",
  "Success": true
}

错误码

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情。