item_id 转换为小程序中可用的 encryptedId,从而在小程序宿主中播放。通过这一能力,可以将原先无法获取的用户存量视频在字节小程序中使用。参见跳转视频播放页。POST https://open-sandbox.douyin.com/api/apps/convert_video_id/open_item_id_to_encrypt_idappid。具体内容参见上面的 access_key 说明err_no,错误信息会携带在 err_tips 中,错误码含义如下:| 错误号 | 描述 |
|---|---|
| 11009 | 传入的参数不合法 |
| -1 | 服务器出错,请稍后重试或验证请求是否合法 |
curl --location --request POST 'https://developer.toutiao.com/api/apps/convert_video_id/open_item_id_to_encrypt_id' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"video_ids": [
"@ty******************",
"@ty******************",
"@ty******************"
],
"access_key": "tt*************"
}'{
"err_no": 0,
"err_tips": "string",
"data": {
"convert_result": {
"@ty******************": "string"
}
}
}