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

getMaterial return a buffer but a json

Open nnsay opened this issue 9 years ago • 0 comments

Q: I get a buffer result but a json when I use the getMaterial api.

check the file: lib/api_material.js at the row 253, u just give a opts before request and do not postJSON the opts. this results in the weixin return a buffer result in callback.

u should postJSON opts or set dataType when post with urllib.

nnsay avatar Jan 11 '16 08:01 nnsay