获取内容值

获取内容值,系统将根据参数计算出对应的内容值

使用GET发起请求,请求地址为/api/v1/stl/content

  1. GET /api/v1/stl/content HTTP/1.1

请求 URI

参数名 类型 必填 说明
siteId 字符串 站点Id
siteDir 字符串 站点文件夹
channelId 字符串 栏目Id
channelIndex 字符串 栏目索引
channelName 字符串 栏目名称
apiKey 字符串 API 密钥,请参考身份认证

/api/v1/stl/content的其他参数与<stl:content>标签一致。

返回

名称 类型 说明
200 OK Content 内容
401 Unauthorized Error 认证错误
400 BadRequest Error 参数错误

示例

请求示例

  1. GET /api/v1/stl/content?siteId=1&channelId=134&contentId=1525
  2. X-SS-API-KEY: 7cd22002-27a7-4c5d-ba4d-a1c108a20eaf

返回示例

  1. {
  2. "value": {
  3. "id": 1525,
  4. "channelId": 134,
  5. "siteId": 1,
  6. "addUserName": "admin",
  7. "lastEditUserName": "admin",
  8. "writingUserName": "",
  9. "lastEditDate": "2018-05-21 10:13:00",
  10. "taxis": 2000000001,
  11. "groupNameCollection": "",
  12. "tags": "",
  13. "sourceId": 0,
  14. "referenceId": 0,
  15. "isChecked": true,
  16. "checkedLevel": 0,
  17. "hits": 40,
  18. "hitsByDay": 1,
  19. "hitsByWeek": 5,
  20. "hitsByMonth": 40,
  21. "lastHitsDate": "2018-05-23 00:00:00",
  22. "title": "雪山深处, 永远热泪盈眶的年轻",
  23. "isTop": true,
  24. "isRecommend": true,
  25. "isHot": true,
  26. "isColor": true,
  27. "addDate": "2018-02-23 10:32:00",
  28. "linkUrl": "",
  29. "settingsXml": "comments=0&photos=0&freereadings=&paidreadings=&fullreadingprice=&paperprice=&titleformatstring=False_False_False_&check_isadmin=True&check_username=admin&check_checkdate=2018-05-21 10:13&check_reasons="
  30. }
  31. }