GetNews【获取新闻公告】

获取宝德云官网发布的新闻公告

Request Parameters

Parameter name Type Description Required
action String API 标识符 Yes

Response Elements

Name Type Description
message String 执行结果信息
code Integer HTTP Resonpe响应状态码
data Array JSON 格式的新闻信息列表,每项参数可见下面 Data Item

Data Item

Name Type Description
date String 新闻发布日期
url String 新闻website地址
title String 新闻标题

Example

Example Request:

Request Headers:

POST /api/ HTTP/1.1
Origin: https://console.plcloud.com
X-CSRFToken: 6An6xEuOJqW6dVDtlgzZr6FqgkSbJmqp
Content-Type: application/json

JSON Data:

{
  "action": "GetNews"
}

Example Response:

{
  "message": "获取新闻信息成功。",
  "code": 200,
  "data": [
    {
      "date": "2014-09-26 10:19:26",
      "url": "http://www.plcloud.com/support/news_detail/21",
      "title": "GNU Bash重大安全漏洞检测及解决方案"
    },
    {
      "date": "2014-07-03 02:08:46",
      "url": "http://www.plcloud.com/support/news_detail/20",
      "title": "网络优化与调整通知"
    },
    {
      "date": "2014-06-05 09:16:00",
      "url": "http://www.plcloud.com/support/news_detail/19",
      "title": "宝德参展中国云计算大会广受关注"
    },
    {
      "date": "2013-10-23 08:14:15",
      "url": "http://www.plcloud.com/support/news_detail/18",
      "title": "验证手机获取代金券"
    },
    {
      "date": "2013-10-23 01:25:08",
      "url": "http://www.plcloud.com/support/news_detail/17",
      "title": "OpenStack为IPv6做好准备了吗?"
    }
  ]
}