token获取流程
<p>> 接口文档地址:<a href="https://partner.open-douyin.com/docs/resource/zh-CN/dop/develop/openapi/account-permission/get-access-token">https://partner.open-douyin.com/docs/resource/zh-CN/dop/develop/openapi/account-permission/get-access-token</a></p>
<p>接口地址:<a href="https://open.douyin.com/oauth/access_token/">https://open.douyin.com/oauth/access_token/</a>
请求方法:POST
请求头:content-type必填string 固定值"application/x-www-form-urlencoded"。请注意此条件,并非json,而是form。
请求参数:
client_key 应用唯一标识
client_secret 应用唯一标识对应的密钥
code 移动/网站应用参考[抖音获取授权码](<a href="https://developer.open-douyin.com/docs/resource/zh-CN/dop/develop/openapi/account-permission/douyin-get-permission-code">https://developer.open-douyin.com/docs/resource/zh-CN/dop/develop/openapi/account-permission/douyin-get-permission-code</a> "抖音获取授权码"),用户授权成功后授权码会回调给redirect_uri。
grant_type:authorization_code</p>
<p>> <strong>抖音的accessToken、refreshToken极其恶心,来回刷新获取最新有效数据。</strong><a href="https://partner.open-douyin.com/docs/resource/zh-CN/dop/develop/openapi/account-permission/refresh-access-token">https://partner.open-douyin.com/docs/resource/zh-CN/dop/develop/openapi/account-permission/refresh-access-token</a></p>
<hr />
<p>服务商应用:
账户名 13588632919
密码 ABC1234.</p>
<p>Client Key awxe4m6a2fz11814
Client Secret 38fda80eae72f294845f0402be6911d0</p>
<p>回调地址:<a href="https://dev.chongaiyoujia.top/index/dy_notify">https://dev.chongaiyoujia.top/index/dy_notify</a>
webhook:<a href="https://dev.chongaiyoujia.top/index/dy_webhook">https://dev.chongaiyoujia.top/index/dy_webhook</a></p>
<p><del>授权地址</del>:<del><a href="https://open.douyin.com/platform/oauth/connect?client_key=awxe4m6a2fz11814&response_type=code&scope=trial.whitelist&redirect_uri=https://dev.chongaiyoujia.top/index/dy_notify">https://open.douyin.com/platform/oauth/connect?client_key=awxe4m6a2fz11814&response_type=code&scope=trial.whitelist&redirect_uri=https://dev.chongaiyoujia.top/index/dy_notify</a></del></p>
<p>服务商授权,无需开发。直接后台申请即可。</p>