对接抖音开放平台
1.获取授权链接
String code = “https://open.douyin.com/platform/oauth/connect/?client_key=” + clientKey
+ “&response_type=code” “&scope=” + scope + “&redirect_uri=” + redirect_uri+ “&state=” + true;
scope:授权的范围
redirect_uri:回调地址
2.获取对应的accessToken
调用服务平台对应的接口
3.走抖音的webhook的接口 进行抖音侧消息接收
4.调用抖音侧发送消息接口 将消息发送给抖音用户
5.获取授权用户对应的视频列表
对应接口
6.获取视频对应的评论
记得对对应的itemId进行encode
URLEncoder.encode(vo.getItemId())
7.获取评论对应的回复列表
commentId和itemId都需要进行encode
String encodeItemId= URLEncoder.encode(vo.getItemId());
String commentId=URLEncoder.encode(vo.getCommentId());