微信请求接口错误
发布于 5 年前 作者 xiuying96 13994 次浏览 来自 问答

微信请求接口错误,错误码61500,日期格式错误,我复制了下微信接口的日期格式,还是报这个错误,求大神帮忙.

4 回复

 //小程序概况(小程序统计)

    wx.request({

      url: ‘https://api.weixin.qq.com/datacube/getweanalysisappiddailysummarytrend?access_token=’ +‘XcA3H0wBe8o2zkp7HfJ4QfWfdxbCTF-_flnXnZB-cerHKl2sMYde5eiwDPCsAwN8Ytsd_y1Xo87JhbIUo2qNaUDSz93h27a4ot_gfpGrYzl9fJ04wLOjx6M-ToCrTnIQMXXdAIAALL’,

      method: ‘POST’,

      data: {

        begin_date:“20170702”,

        end_date:“20170702”

      },

      header: {

        “Content-Type”: “application/x-www-form-urlencoded”

      },

      //dataType: JSON,

      success: function (res) {

        console.log(“小程序概况--------------------->”, res)

      }

    })

该接口接收的数据为json格式,请使用application/json作为content-type

这是统计小程序数据的接口,

请提供具体的接口名称、参数格式和使用方法。

回到顶部