Contact Us
Log In

Query Content Details

Last Updated on : 2021-10-27 01:59:31download

Query the details of the content, such as the article body, article number, and content ID.

API address

GET: /v1.0/iot-03/app-contents/{content_id}

Request parameter

Parameter name Type IN Required Description
content_id String uri true The ID of a specified content.

Return parameter

Parameter name Type Description
result ArticleDetailRsp The details of the content.

Description of result

Parameter name Type Description
content String The body of a specified article.
article_code String The number of a specified article.
content_id String The ID of a specified content.
tenant_id String The ID of a specified tenant.
title String The title.
sub_title String The sub-title.
lang String The language.
main_pic String The main image.
sub_pic String The sub-image of a specified article.
content_url String The URL of a specified content.
video_url String The URL of the video.
type Integer The type of the article. Valid values:
  • 1: images and text.
  • 2: video.
top Boolean Indicates whether the article is sticky on the top. Valid values:
  • true: yes.
  • false: no.
status Integer The status of the article. Valid values:
  • 1: The article has been released.
  • 2: The article is to be released.
  • 3: The article is being reviewed.
  • 4: The article failed to pass the review.
  • 5: The article has been removed.
create_time Long The time when it is created.
publish_time Long The time when it is released.
update_time Long The time when it is updated.
read_count Integer The page views of the article.
like_count Integer The number of likes of the article.
category_id String The ID of a specified category.
category_name String The name of a specified category.
creator String The person who has created the article.
modifier String The person who has modified the article.
schema String App schema

Request example

GET: /v1.0/iot-03/app-contents/12

Return example

{ "result": { "schema": 1395714112, "main_pic": "/suramar/content/1619002638fd391d975de.jpeg", "tenant_id": "bay1617694933431vh5n", "creator": "bay1617694933431vh5n", "category_name": "Recommended", "like_count": 0, "create_time": 1629971949689, "content_id": "1430832178920423485", "modifier": "bay1617694933431vh5n", "title": "Great Discount on Smart Locks", "type": 2, "article_code": "Kavcjocm4ym2z", "update_time": 1629971949689, "video_url": "/suramar/content/16196872089f000412038.mp4", "category_id": "1430815593119879245", "top": false, "publish_time": 1629971949667, "lang": "zh", "read_count": 0, "status": 1 }, "t": 1630398030916, "success": true }

Error code

For more information, see error code.