0
点赞
收藏
分享

微信扫一扫

快手获取 access_token

莞尔小迷糊 2022-02-12 阅读 31

1.快手官方文档

快手官方文档

https://mp.kuaishou.com/docs/develop/server/getAccessToken.html#%E8%BF%94%E5%9B%9E%E5%80%BC

代码

    wx.request({
      url: "https://open.kuaishou.com/oauth2/access_token",
      data: {
        grant_type: 'client_credentials',
        app_id: "你的app_id",
        app_secret: "你的app_secret"
      },
      header: {
        "Content-Type": "x-www-form-urlencoded"
      },
      success: function (res) {
        console.log(res);
        wx.showToast({
          title: '成功!',
          icon: 'success',
          duration: 2000
        })
      },
    })

返回结果

在这里插入图片描述

举报

相关推荐

0 条评论