co-wechat-api icon indicating copy to clipboard operation
co-wechat-api copied to clipboard

Wechat API. Support Async Functions

Results 27 co-wechat-api issues
Sort by recently updated
recently updated
newest added

调用语义理解接口报错,jsonji解析错误。 ![image](https://user-images.githubusercontent.com/15318800/38814823-0ab4ec9a-41c5-11e8-84fc-27ba7aa20942.png) ![image](https://user-images.githubusercontent.com/15318800/38814831-0e8ae6e4-41c5-11e8-92ac-b2a875c1ecf0.png) ![image](https://user-images.githubusercontent.com/15318800/38814838-116ab024-41c5-11e8-9030-8d0874daf7dc.png)

request方法中没有返回res数据,这个很尴尬,在下载素材的时候,需要拿到返回的headers中的数据(里面包含了图片的名称和类型数据)

exports.getPageStatistics = async function (options) { const { accessToken } = await this.ensureAccessToken(); var url = 'https://api.weixin.qq.com/shakearound/statistics/page?access_token=' + accessToken; return this.request(url, postJSON(options)); }; exports.listBeaconGroup = async function (options) { const...

调用 uploadMaterial(filepath, 'TYPE) 时,无反应,即无成功result,也无errmsg,程序也无报错。 调用 uploadMedia(filename, TYPE)时, 返回buffer,如下,即非腾讯返回示例里的四种类型。 mediaresult: {"type":"Buffer","data":[123,34,118,111,105,99,101,95,99,111,117,11 0,116,34,58,49,44,34,118,105,100,101,111,95,99,111,117,110,116,34,58,48,44,34,10 5,109,97,103,101,95,99,111,117,110,116,34,58,51,44,34,110,101,119,115,95,99,111, 117,110,116,34,58,50,125]}

测试代码: > var filePath = path.resolve('./public/upload'); > var filename = path.join(filePath, '1.jpeg'); > var type = 'image'; > var result = yield api.uploadMaterial(filename, type); > this.body = result; 已创建好api对象,执行时,返回: >...