{"id":51598826,"url":"https://github.com/wxpusher/wxpusher-sdk-go","last_synced_at":"2026-07-11T20:01:41.638Z","repository":{"id":57505668,"uuid":"232227407","full_name":"wxpusher/wxpusher-sdk-go","owner":"wxpusher","description":"微信消息实时推送服务[WxPusher]的go版本sdk，可以通过API实时给个人微信推送消息。wechat pusher. ","archived":false,"fork":false,"pushed_at":"2020-08-11T06:12:40.000Z","size":16,"stargazers_count":56,"open_issues_count":0,"forks_count":20,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-06-18T17:03:00.556Z","etag":null,"topics":["message-push","wechat-push","weixin","wxpusher"],"latest_commit_sha":null,"homepage":"http://wxpusher.zjiecode.com/demo","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wxpusher.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-07T02:36:52.000Z","updated_at":"2024-03-07T14:15:08.000Z","dependencies_parsed_at":"2022-09-19T13:51:05.316Z","dependency_job_id":null,"html_url":"https://github.com/wxpusher/wxpusher-sdk-go","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/wxpusher/wxpusher-sdk-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wxpusher%2Fwxpusher-sdk-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wxpusher%2Fwxpusher-sdk-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wxpusher%2Fwxpusher-sdk-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wxpusher%2Fwxpusher-sdk-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wxpusher","download_url":"https://codeload.github.com/wxpusher/wxpusher-sdk-go/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wxpusher%2Fwxpusher-sdk-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35374165,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-11T02:00:05.354Z","response_time":104,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["message-push","wechat-push","weixin","wxpusher"],"created_at":"2026-07-11T20:01:40.541Z","updated_at":"2026-07-11T20:01:41.632Z","avatar_url":"https://github.com/wxpusher.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wxpusher-client\r\n\r\n[zjiecode/wxpusher-client](https://github.com/zjiecode/wxpusher-client)的 Go 语言版本\r\n\r\n## 安装\r\n\r\n```sh\r\ngo get -u github.com/wxpusher/wxpusher-sdk-go\r\n```\r\n\r\n```sh\r\ngo get github.com/wxpusher/wxpusher-sdk-go@v1.0.3\r\n```\r\n\r\n引入\r\n\r\n```go\r\nimport (\r\n\t\"github.com/wxpusher/wxpusher-sdk-go\"\r\n\t\"github.com/wxpusher/wxpusher-sdk-go/model\"\r\n)\r\n```\r\n\r\n## 发送消息\r\n\r\n```go\r\nmsg := model.NewMessage(appToken).SetContent(\"测试\").AddUId(uId)\r\nmsgArr, err := wxpusher.SendMessage(msg)\r\nfmt.Println(msgArr, err)\r\n```\r\n\r\n## 查询状态\r\n\r\n```go\r\nstatus, err := wxpusher.QueryMessageStatus(2384429)\r\nfmt.Println(status, err)\r\n```\r\n\r\n## 创建参数二维码\r\n\r\n```go\r\nqrcode := model.Qrcode{AppToken: appToken, Extra: \"XX渠道用户\"}\r\nqrcodeResp, err := wxpusher.CreateQrcode(\u0026qrcode)\r\nfmt.Println(qrcodeResp, err)\r\n```\r\n\r\n## 查询 App 的关注用户\r\n\r\n```go\r\nresult, err := wxpusher.QueryWxUser(appToken, 1, 20)\r\nfmt.Println(result, err)\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwxpusher%2Fwxpusher-sdk-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwxpusher%2Fwxpusher-sdk-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwxpusher%2Fwxpusher-sdk-go/lists"}