objectIdstringจำเป็น
WeChat Channels video objectId as a numeric string of up to 32 digits.
https://api.sandbase.ai/v1/api/wechat-channels/video-share-urlGenerates a share link for a WeChat Channels video identified by objectId. Use it to share a known Channels video or obtain its link for a subsequent lookup.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
Returns a share link for a WeChat Channels video. It needs the video's objectId, a numeric string of up to 32 digits.
objectId.objectId resolves to a share link before you run other lookups on it.curl -X POST "https://api.sandbase.ai/v1/api/wechat-channels/video-share-url" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"objectId": "14941130915890399732"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
objectId | string | Yes | WeChat Channels video objectId as a numeric string of up to 32 digits. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"baseResponse": {
"errMsg": {
"pbRequestMsgInfo": null,
"string": ""
},
"pbRequestMsgInfo": null,
"ret": 0
},
"debug_id": "0d40f417",
"debug_info": "gAAAAABq6ZEtz42gcdCDHhDLWar9xy2VgLbbYPFgPXOAEtdZkXrXcdwRuKMG5f15jimcUeQld7nEBFAJ…",
"feedH5Url": "https://weixin.qq.com/sph/Aci4tPzBEf",
"pbRequestMsgInfo": null,
"urlList": [
{
"feedH5Url": "https://weixin.qq.com/sph/Aci4tPzBEf",
"objectId": 14941130915890399732,
"pbRequestMsgInfo": null
}
]
}
| Field | Meaning |
|---|---|
feedH5Url | The share link for the video. It is a weixin.qq.com/sph/ URL. The same value appears in urlList[].feedH5Url. |
urlList[].feedH5Url | Share link for each requested video. The list holds one entry for the objectId you sent. |
urlList[].objectId | The video objectId that the link belongs to. It comes back as a number here, so large values may lose precision in some JSON parsers. |
baseResponse.ret | Status code of the call. The sample returns 0. |
baseResponse.errMsg.string | Error message text. It is an empty string in the sample response. |
debug_id / debug_info | Debug values attached to the response. You do not need them to use the link. |
objectId as a string, as in the request example. Read urlList[].objectId with a big-number safe parser, or match on the string you sent.objectId, call WeChat Channels Video Detail.$0.028571 per successful call. Failed calls are not charged.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/wechat-channels/video-share-url" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"objectId": "14941130915890399732"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
objectIdstringจำเป็นWeChat Channels video objectId as a numeric string of up to 32 digits.
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
WeChat Channels | $0.028571 ต่อการเรียก | 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-share-url โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.028571 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: objectId (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น WeChat Channels Video Share URL ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง WeChat Channels API แยกต่างหาก