{"id":17246247,"url":"https://github.com/hanson/exmail","last_synced_at":"2025-10-10T02:06:31.589Z","repository":{"id":62514407,"uuid":"60138322","full_name":"Hanson/Exmail","owner":"Hanson","description":"腾讯企业邮箱API","archived":false,"fork":false,"pushed_at":"2016-07-09T12:48:48.000Z","size":9,"stargazers_count":8,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-10T02:06:29.401Z","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-06-01T02:15:28.000Z","updated_at":"2023-05-30T15:20:58.000Z","dependencies_parsed_at":"2022-11-02T13:15:41.976Z","dependency_job_id":null,"html_url":"https://github.com/Hanson/Exmail","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Hanson/Exmail","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hanson%2FExmail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hanson%2FExmail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hanson%2FExmail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hanson%2FExmail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hanson","download_url":"https://codeload.github.com/Hanson/Exmail/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hanson%2FExmail/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002528,"owners_count":26083399,"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-10T02:00:06.843Z","response_time":62,"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":[],"created_at":"2024-10-15T06:32:55.923Z","updated_at":"2025-10-10T02:06:31.554Z","avatar_url":"https://github.com/Hanson.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Exmail\n腾讯企业邮箱API\n\n## Install\n\n`composer require hanson/exmail`\n\n## Notice\n\n具体返回参数请查看 [在线文档](http://wenku.baidu.com/view/71d452dc2cc58bd63186bdd2.html?re=view)\n\n## Usage\n\n```\n\n# 初始化\n$exmail = new \\Hanccc\\Exmail($client_id, $client_secret);\n\n# 获取AuthKey\n$authKey = $exmail-\u003egetAuthKey($email);\n\n# 单点登录\n$link = $exmail-\u003elogin($email);\n\u003ca href=\"\u003c?= $link ?\u003e\"\u003e\n\n# 获取未读邮件数量\n$count = $exmail-\u003ecount($email);\n\n# 获取邮箱信息\n$user = $exmail-\u003egetInfo($email);\necho $user-\u003eName;\necho $user-\u003eGender;\necho $user-\u003ePosition;\n...\n\n# 检查邮箱是否可用\n$exmail-\u003echeck([$email, $email]);\n\n# 增加邮件群组\n$exmail-\u003eaddGroup('tech', 'tech@mail.com');\n\n# 删除邮件群组\n$exmail-\u003edelGroup('tech@mail.com');\n\n# 增加邮箱到某邮件群组\n$exmail-\u003eaddMember('tech@mail.com', $email);\n\n# 删除某邮件群组的邮箱\n$exmail-\u003edelMember('tech@mail.com', $email);\n\n# 同步邮件群组\n//Exmail::MOD 修改， Exmail::ADD 增加， Exmail::DEL 删除\n$exmail-\u003esyncParty(\\Hanccc\\Exmail::DEL, '市场部');\n\n# 列出组织架构\n$exmail-\u003elistParty();\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanson%2Fexmail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhanson%2Fexmail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanson%2Fexmail/lists"}