收藏
回答

在线等,如何获取access_taken以及小程序二维码

如何获取access_taken,是这样获取吗?

testTap:function(){

   wx.request({

     url: 'https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=APPSECRET',

     success:function(res){

       console.log(res.data);

     }

   })

 },

还有获取小程序页面带参二维码时这样获取的吗?


testTap1:function(){

   wx.request({

     data: {

       'path': 'pages/test/test',

      'width': 200},

     url: 'https://api.weixin.qq.com/wxa/getwxacode?access_token="sdgwtjuer4iwtrujtkljjjwetkljwle"',

     method:'POST',

     header: {


       'content-type': 'application/json'


     },

     success: function (res) {

       console.log(res);


     }

   })

 }




回答关注问题邀请回答
收藏

2 个回答

  • 第一桶金
    第一桶金
    2017-10-12

    这两个都是后台做吗?

    2017-10-12
    有用
    回复
  • You can you up
    You can you up
    2017-10-12

    后台做

    2017-10-12
    有用
    回复
登录 后发表内容