先获取accesstoken,然后请求https://open.douyin.com/api/apps/v1/qrcode/create/这个url生成抖音小程序二维码,
curl --location --request POST 'https://open.douyin.com/api/apps/v1/qrcode/create/' \ --header 'Content-Type: application/json' \ --header 'access-token: clt.943da17123131231******' --data-raw '{ "app_name": "douyin", "appid": "tt**********", "path": "{}", "width": 1000, "line_color": { "r": 0, "g": 0, "b": 0 }, "background": { "r": 0, "g": 0, "b": 0 }, "set_icon": false }'官方有文档:https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/url-and-qrcode/qrcode/create-qr-code-v2
网友回复