objectIdstringจำเป็น
WeChat Channels video object id used to fetch second-level comment replies.
https://api.sandbase.ai/v1/api/wechat-channels/video-sub-commentGet replies under a first-level WeChat Channels video comment using the video and root-comment IDs. Use it to continue a threaded comment discussion with buffer pagination.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
Returns the second-level replies under one first-level comment on a WeChat Channels video. It needs the video objectId and the rootCommentId of the parent comment. Each reply includes its text, author, like count, and a last_buffer for the next page.
ip_region_info.region_text to see where a discussion comes from.comment_id and createtime.curl -X POST "https://api.sandbase.ai/v1/api/wechat-channels/video-sub-comment" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"objectId": "15042116979764234697", "rootCommentId": "15042242325261781458"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
objectId | string | Yes | WeChat Channels video object id used to fetch second-level comment replies. |
rootCommentId | string | Yes | Root first-level comment id returned by the WeChat Channels video comments endpoint. |
last_buffer | string | No | Pagination buffer for WeChat Channels second-level comment replies. Use the first-level comment's last_buffer for the first reply page when present. For this POST endpoint, send it in an application/x-www-form-urlencoded |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"comment_info": [
{
"author_contact": {
"bind_info": [],
"head_url": "https://wx.qlogo.cn/mmhead/ver_1/1NUh9hyHm9axx8pDKTAKwPMbz8lHSqNpOXtgU5sfLXN8qIp…",
"menu": [],
"nickname": "刘明顺",
"reference_info": [],
"username": "v5_020b0a16610401000000000099da18de46a5c9000000b1afa7d8728e3dd43ef4317a780e33c2a…"
},
"comment_id": "15045764170299677659",
"content": "666",
"content_type": 0,
"createtime": "1793594857",
"dislike_count": 0,
"display_flag": 0,
"expand_comment_count": 0,
"ext_flag": 32,
"head_url": "https://wx.qlogo.cn/mmhead/ver_1/1NUh9hyHm9axx8pDKTAKwPMbz8lHSqNpOXtgU5sfLXN8qIp…",
"interaction_label_list": [],
"ip_region_info": {
"region_text": "贵州"
}
}
],
"down_continue_flag": 1,
"last_buffer": "CJGSoKCZp9Lm0AE4yP6/mvTwvAY=",
"req_p": "192.168.1.129:2020"
}
| Field | Meaning |
|---|---|
comment_info[].comment_id | ID of the reply comment. |
comment_info[].content | Text of the reply. |
comment_info[].nickname / comment_info[].head_url | Display name and avatar URL of the person who wrote the reply. |
comment_info[].createtime | Time the reply was posted, as a string. The values look like Unix timestamps in seconds. |
comment_info[].like_count / comment_info[].dislike_count | Number of likes and dislikes on the reply. |
comment_info[].ip_region_info.region_text | Region label shown with the reply, for example a Chinese province name. |
comment_info[].reply_comment_id / comment_info[].reply_content | ID and text of the comment this reply belongs to. reply_comment_id matches the rootCommentId you sent. |
comment_info[].expand_comment_count | Count of further replies that can be expanded under this reply. |
down_continue_flag | Value 1 in this response, which goes with a last_buffer for another page. Treat it as a continue flag. |
last_buffer | Pagination buffer. Send it as last_buffer in the next request to get the next page of replies. |
rootCommentId from the first-level comment list in WeChat Channels Video Comments or WeChat Channels Video Comments.last_buffer when it is present. For later pages, pass the last_buffer from the previous response.last_buffer in an application/x-www-form-urlencoded form body on this POST endpoint.comment_id values are long numeric strings. Keep them as strings.$0.021429 per successful call. Failed calls are not charged.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/wechat-channels/video-sub-comment" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"objectId": "15042116979764234697",
"rootCommentId": "15042242325261781458"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
objectIdstringจำเป็นWeChat Channels video object id used to fetch second-level comment replies.
rootCommentIdstringจำเป็นRoot first-level comment id returned by the WeChat Channels video comments endpoint.
last_bufferstringPagination buffer for WeChat Channels second-level comment replies. Use the first-level comment's last_buffer for the first reply page when present. For this POST endpoint, send it in an application/x-www-form-urlencoded form body.
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
WeChat Channels | $0.021429 ต่อการเรียก | JSON |
WeChat Channels | $0.071429 ต่อการเรียก | JSON |
WeChat Channels | $0.021429 ต่อการเรียก | JSON |
WeChat Channels | $0.071429 ต่อการเรียก | JSON |
WeChat Channels | $0.114286 ต่อการเรียก | JSON |
WeChat Channels | $0.01 ต่อการเรียก | JSON |
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/wechat-channels/video-sub-comment โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.021429 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: objectId (string) และ rootCommentId (string). ตัวเลือก: last_buffer (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น WeChat Channels Video Sub Comments ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง WeChat Channels API แยกต่างหาก