{"id":23236869,"url":"https://github.com/artisancloud/powerwechattutorial","last_synced_at":"2025-10-11T08:48:01.136Z","repository":{"id":37448092,"uuid":"401381805","full_name":"ArtisanCloud/PowerWechatTutorial","owner":"ArtisanCloud","description":"方便用户学习和调试PowerWechat接口功能","archived":false,"fork":false,"pushed_at":"2025-07-04T14:27:54.000Z","size":2346,"stargazers_count":92,"open_issues_count":3,"forks_count":21,"subscribers_count":4,"default_branch":"release/v3.0.0","last_synced_at":"2025-07-04T16:01:39.864Z","etag":null,"topics":["powerwechat","sdk","wechat"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ArtisanCloud.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-08-30T14:53:50.000Z","updated_at":"2025-05-16T08:31:18.000Z","dependencies_parsed_at":"2025-01-09T07:05:01.502Z","dependency_job_id":"ea79c5df-1c75-4d7e-87d2-be6e86f66961","html_url":"https://github.com/ArtisanCloud/PowerWechatTutorial","commit_stats":{"total_commits":93,"total_committers":6,"mean_commits":15.5,"dds":0.4193548387096774,"last_synced_commit":"7a84242f9d806d2d82a60ace22caa43c78d78ebb"},"previous_names":["artisancloud/power-wechat-tutorial"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ArtisanCloud/PowerWechatTutorial","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArtisanCloud%2FPowerWechatTutorial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArtisanCloud%2FPowerWechatTutorial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArtisanCloud%2FPowerWechatTutorial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArtisanCloud%2FPowerWechatTutorial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ArtisanCloud","download_url":"https://codeload.github.com/ArtisanCloud/PowerWechatTutorial/tar.gz/refs/heads/release/v3.0.0","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArtisanCloud%2FPowerWechatTutorial/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279006642,"owners_count":26084149,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"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":["powerwechat","sdk","wechat"],"created_at":"2024-12-19T04:12:59.087Z","updated_at":"2025-10-11T08:48:01.103Z","avatar_url":"https://github.com/ArtisanCloud.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PowerWeChat Tutorial 使用实例\n\n我们单独写了一个项目[PowerWechatTutorial](https://github.com/ArtisanCloud/PowerWechatTutorial)，基本上覆盖了所有的API使用，希望能够帮助大家更快的上手Golang WeChat开发。\n\n### 下载项目\n```bash\ngit clone https://github.com/ArtisanCloud/PowerWechatTutorial.git\n```\n\n### Insomnia配置（可选）\n可以下载insomnia的配置文件，便于在Tutorial里使用insomnia调试。\n[insomnia.json](./insomnia.json)\n\n### 项目配置\n在项目根目录下，新建一个`config.yaml`, 把下面字段内容复制进去， 然后执行`go run main.go`。\n如果程序正常启动，访问 [http://localhost:8888](http://localhost:8888) 会返回一个`Hello, PowerWechat`\n\n```yaml\n# 微信支付配置文档： https://powerwechat.artisan-cloud.com/zh/payment/index.html#userconfig%E5%8F%82%E6%95%B0%E8%AF%B4%E6%98%8E%EF%BC%9A\npayment:\n  appid: xxxxx # 公众号appid、小程序appid、企业微信corpid等\n  mchid: 100000 # ArtisanCloud商户号\n  certpath: certs/apiclient_cert.pem # 证书路径\n  keypath: certs/apiclient_key.pem # 证书私钥路径\n  serialno: 55D06F99FF64CF1759FDE5B77A0BEC8B67A78C2E\n  key: xxxxx\n  mchapiv3key: xxxxx\n  notifyurl: https://www.artisancloud.cn\n  redisaddr: localhost:6379\n\n# 小程序配置文档： https://powerwechat.artisan-cloud.com/zh/mini-program/index.html\nminiprogram:\n  appid: xxxxx\n  secret: xxxxx\n  redisaddr: localhost:6379\n  messagetoken: xxxxx\n  messageaeskey: xxxxx\n\n# 企业微信配置文档： https://powerwechat.artisan-cloud.com/zh/wecom/index.html\nwecom:\n  corpid: ww454dfb9d6f6d432a\n\n  # ----- powerwechat-docs-demo start ------\n  agent_id: 1000000\n  secret: xxxxx\n  messagetoken: xxxxx\n  messageaeskey: xxxxx\n  messagecallback: https://www.artisan-cloud.com/message/callback\n  oauthcallback: https://www.artisan-cloud.com/oauth/callback\n  # ----- powerwechat-docs-demo end ------\n\n  # 联系人配置\n  contactsecret: xxxxx\n  contacttoken: xxxxx\n  contactaeskey: xxxxx\n  contactcallback: https://www.artisan-cloud.com/api/wx/customer\n\n  redisaddr: localhost:6379\n\n# 公众号配置文档： https://powerwechat.artisan-cloud.com/zh/official-account/index.html\noffiaccount:\n  appid: xxxxx\n  appsecret: xxxxx\n  redisaddr: localhost:6379\n  messagetoken: xxxxx\n  messageaeskey: xxxxx\n```\n\n在`main.go`里面，你可以选择性的注释掉不需要的模块，避免没有配置的时候报错影响运行。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartisancloud%2Fpowerwechattutorial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fartisancloud%2Fpowerwechattutorial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartisancloud%2Fpowerwechattutorial/lists"}