{"id":21803046,"url":"https://github.com/litongjava/open-microservice-api","last_synced_at":"2026-05-09T00:04:32.981Z","repository":{"id":183119207,"uuid":"669629821","full_name":"litongjava/open-microservice-api","owner":"litongjava","description":null,"archived":false,"fork":false,"pushed_at":"2023-07-22T23:18:35.000Z","size":129,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-26T04:09:33.125Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/litongjava.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,"governance":null}},"created_at":"2023-07-22T23:02:33.000Z","updated_at":"2023-07-22T23:03:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"911d35f0-70d7-49b8-b31f-0e8a6ef97874","html_url":"https://github.com/litongjava/open-microservice-api","commit_stats":null,"previous_names":["litongjava/open-microservice-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litongjava%2Fopen-microservice-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litongjava%2Fopen-microservice-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litongjava%2Fopen-microservice-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litongjava%2Fopen-microservice-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/litongjava","download_url":"https://codeload.github.com/litongjava/open-microservice-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244752362,"owners_count":20504256,"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-11-27T11:37:40.520Z","updated_at":"2026-05-09T00:04:32.926Z","avatar_url":"https://github.com/litongjava.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# open-microservice-api\n\n1. send mail via google mail\n\n## Install\nset environment\n```\nPORT=8080;MAIL_USER=;MAIL_PASSWORD=\n```\nMAIL_USER is your google acount,MAIL_PASSWORD is your google account's app password\n## Get Google Account App Password\n[https://myaccount.google.com/security](https://myaccount.google.com/security)\nturn on 2-Step Verification\n![](readme_files/4.jpg)\nApp password\n![](readme_files/2.jpg)\ngeneate app password\n![](readme_files/3.jpg)\n![](readme_files/1.jpg)\n\n## send mail\n### curl\n```\ncurl --location --request POST 'https://localhost:8080' \\\n--header 'User-Agent: apifox/1.0.0 (https://www.apifox.cn)' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\n  \"to\": \"to\",\n  \"subject\": \"sbuject\",\n  \"body\": \"body\"\n}'\n```\n### pytyon requests \n````\nimport requests\nimport json\n\nurl = \"https://localhost:8080\"\n\npayload = json.dumps({\n   \"to\": \"litong@hawaii.edu\",\n   \"subject\": \"王志安 更新\",\n   \"body\": \"王志安有更新了信息,请访问下面的地址查看.\"\n})\nheaders = {\n   'User-Agent': 'apifox/1.0.0 (https://www.apifox.cn)',\n   'Content-Type': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flitongjava%2Fopen-microservice-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flitongjava%2Fopen-microservice-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flitongjava%2Fopen-microservice-api/lists"}