{"id":17246226,"url":"https://github.com/hanson/wechat-oa","last_synced_at":"2025-09-13T16:32:51.796Z","repository":{"id":62514371,"uuid":"59997514","full_name":"Hanson/wechat-oa","owner":"Hanson","description":"登录微信公众号并可主动发送消息","archived":false,"fork":false,"pushed_at":"2017-02-14T09:51:15.000Z","size":43,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-03-14T21:28:16.251Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hanson.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":"2016-05-30T09:25:27.000Z","updated_at":"2024-03-14T21:28:16.251Z","dependencies_parsed_at":"2022-11-02T13:31:00.148Z","dependency_job_id":null,"html_url":"https://github.com/Hanson/wechat-oa","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hanson%2Fwechat-oa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hanson%2Fwechat-oa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hanson%2Fwechat-oa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hanson%2Fwechat-oa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hanson","download_url":"https://codeload.github.com/Hanson/wechat-oa/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219845043,"owners_count":16556477,"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","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":[],"created_at":"2024-10-15T06:32:48.624Z","updated_at":"2024-10-15T06:32:49.770Z","avatar_url":"https://github.com/Hanson.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wechat-oa\n模拟登录微信公众号并可主动向24小时内有消息互动的用户主动发送消息\n\n# install\n\ncomposer require hanccc/wechat-oa\n\n# usage\n\n## 普通模式\n\n```\n$wechat = new \\Hanccc\\WechatOA($email, $password);\n```\n\n## 多例模式\n\n```\n$wechat = \\Hanccc\\WechatOA::getInstance($email, $password);\n```\n\n### 发送消息\n```\n$wechat-\u003esendMessage('hello', 'openid');\n```\n\n```\n//或者可以先把token存储起来减少登录时所耗费的时间\n$token = $wechat-\u003egetToken\n$wechat-\u003esendMessage('hello', 'openid', $wechat-\u003egetToken());\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanson%2Fwechat-oa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhanson%2Fwechat-oa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanson%2Fwechat-oa/lists"}