objectIdstringobbligatorio
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.
Il tuo output apparirà qui
Completa gli input, poi fai clic su Esegui.
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.
Inizia a costruire
Endpoint API della piattaforma con autenticazione unificata e tracciamento dell'utilizzo.
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"
}'Imposta la tua SandBase API key nell'ambiente del server. Le richieste usano l'autenticazione Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserva la tua key sul server. Non esporla nel codice del browser.
objectIdstringobbligatorioWeChat Channels video objectId as a numeric string of up to 32 digits.
Risposta di esempio salvata per questa API; durante la visualizzazione non viene eseguita alcuna richiesta live.
Nessuna risposta salvata è stata pubblicata. Esegui l'API in Playground per ispezionarne la risposta.
Esplora altro
| API | Prezzo | Risposta |
|---|---|---|
WeChat Channels Video Share URLQuesta API WeChat Channels | $0.028571 per chiamata | JSON |
WeChat Channels | $0.071429 per chiamata | JSON |
WeChat Channels | $0.021429 per chiamata | JSON |
WeChat Channels | $0.071429 per chiamata | JSON |
WeChat Channels | $0.114286 per chiamata | JSON |
WeChat Channels | $0.01 per chiamata | JSON |
Domande
Invia una richiesta POST a https://api.sandbase.ai/v1/api/wechat-channels/video-share-url con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.
$0.028571 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.
Richiesti: objectId (string). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.
Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.
No. WeChat Channels Video Share URL funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API WeChat Channels.