omigo / weixin Goto Github PK
View Code? Open in Web Editor NEWweixin-sdk-go,Golang 实现的微信公众号接口
License: MIT License
weixin-sdk-go,Golang 实现的微信公众号接口
License: MIT License
cant find github.com/arstd/mooo/misc/fetch
我项目可能用到该sdk某些功能,请问这个sdk能在实际项目使用了吗?谢谢
今天测试生成短链,调用到http.go 的Post函数,微信一直返回 40052,经过调试发现json参数没有正常传过去,建议作者再测试一下。
修改后的代码:
// Post HTTP 工具类, POST 并解析返回的报文,如果有错误,返回 error
func Post(url string, v interface{}, wxr wxResp) (err error) {
js := v.([]byte)
req,err := http.NewRequest("POST",url,bytes.NewBuffer(js))
req.Header.Set("Content-Type","application/json")
resp,err := client.Do(req)
if err != nil {
return err
}
return parseWXResp(resp, wxr)
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.