wechat-api
wechat-api copied to clipboard
getMaterial return a buffer but a json
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.