objectIdstringobligatoire
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.
Votre sortie apparaîtra ici
Complétez les entrées, puis cliquez sur Exécuter.
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.
Commencer à construire
Point de terminaison de l'API de la plateforme avec authentification unifiée et suivi de l'utilisation.
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"
}'Définissez votre clé API SandBase dans l'environnement de votre serveur. Les requêtes utilisent l'authentification Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conservez votre clé côté serveur. Ne l'exposez pas dans le code du navigateur.
objectIdstringobligatoireWeChat Channels video objectId as a numeric string of up to 32 digits.
Exemple de réponse enregistré pour cette API ; aucune requête en direct n'est effectuée lors de l'affichage.
Aucune réponse enregistrée n'a été publiée. Exécutez l'API dans Playground pour inspecter sa réponse.
Explorer plus
| API | Prix | Réponse |
|---|---|---|
WeChat Channels Video Share URLCette API WeChat Channels | $0.028571 par appel | JSON |
WeChat Channels | $0.071429 par appel | JSON |
WeChat Channels | $0.021429 par appel | JSON |
WeChat Channels | $0.071429 par appel | JSON |
WeChat Channels | $0.114286 par appel | JSON |
WeChat Channels | $0.01 par appel | JSON |
Questions
Envoyez une requête POST à https://api.sandbase.ai/v1/api/wechat-channels/video-share-url avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.
$0.028571 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.
Obligatoire : objectId (string). Le tableau des paramètres et le Playground sur cette page listent tous les champs.
Une réponse JSON renvoyée dans la même requête HTTP (synchrone). Le README sur cette page inclut un exemple de réponse.
Non. WeChat Channels Video Share URL fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API WeChat Channels séparément.