{"id":21564622,"url":"https://github.com/ug0/aliyun_sms","last_synced_at":"2025-04-10T13:07:19.223Z","repository":{"id":33274690,"uuid":"157183566","full_name":"ug0/aliyun_sms","owner":"ug0","description":"Aliyun SMS(阿里云短信) SDK for Elixir","archived":false,"fork":false,"pushed_at":"2025-03-05T02:58:45.000Z","size":88,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T11:45:44.703Z","etag":null,"topics":["aliyun","aliyun-sms","api","elixir","hex"],"latest_commit_sha":null,"homepage":"https://hex.pm/packages/aliyun_sms","language":"Elixir","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/ug0.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}},"created_at":"2018-11-12T08:53:46.000Z","updated_at":"2025-03-18T14:20:10.000Z","dependencies_parsed_at":"2025-03-05T02:22:34.704Z","dependency_job_id":"f49ad432-1d13-44a3-881c-049518606198","html_url":"https://github.com/ug0/aliyun_sms","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ug0%2Faliyun_sms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ug0%2Faliyun_sms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ug0%2Faliyun_sms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ug0%2Faliyun_sms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ug0","download_url":"https://codeload.github.com/ug0/aliyun_sms/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248224043,"owners_count":21068071,"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":["aliyun","aliyun-sms","api","elixir","hex"],"created_at":"2024-11-24T10:16:35.242Z","updated_at":"2025-04-10T13:07:19.208Z","avatar_url":"https://github.com/ug0.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AliyunSms\n\n[![Build Status](https://travis-ci.org/ug0/aliyun_sms.svg?branch=master)](https://travis-ci.org/ug0/aliyun_sms)\n[![Hex.pm](https://img.shields.io/hexpm/v/aliyun_sms.svg)](https://hex.pm/packages/aliyun_sms)\n\nAliyun SMS API(阿里云短信服务 API)\n\n## Installation\n\nIf [available in Hex](https://hex.pm/docs/publish), the package can be installed\nby adding `aliyun_sms` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:aliyun_sms, \"~\u003e 0.2.8\"}\n  ]\nend\n```\n\n## Configuration\n```elixir\nconfig :aliyun_sms,\n  access_key_id: \"ALIYUN_ACCESS_KEY_ID\",\n  access_key_secret: \"ALIYUN_ACCESS_KEY_SECRET\"\n```\nOr if you want to config them via run-time system environment variables:\n```elixir\nconfig :aliyun_sms,\n  access_key_id: {:system, \"ALIYUN_ACCESS_KEY_ID\"},\n  access_key_secret: {:system, \"ALIYUN_ACCESS_KEY_SECRET\"}\n```\n\n\n## Quickstart\n\n```elixir\nAliyun.Sms.send_sms(\"1500000000\", \"阿里云短信测试专用\", \"SMS_0000\", %{code: \"222333\"})\n# {:ok, %{\"Code\" =\u003e \"OK\", \"Message\" =\u003e \"OK\", \"BizId\" =\u003e \"700000000000000000^0\", \"RequestId\" =\u003e \"A0000000-3CC1-4000-8000-E00000000000\"}}\n\nAliyun.Sms.send_sms(\"1500000000\", \"invalid_sig\", \"SMS_0000\", %{code: \"222333\"})\n# {:error, \"isv.SMS_SIGNATURE_ILLEGAL\", %{\"Code\" =\u003e \"isv.SMS_SIGNATURE_ILLEGAL\", \"Message\" =\u003e \"短信签名不合法\"}}\n\nAliyun.Sms.send_sms(\"1500000000\", \"阿里云短信测试专用\", \"SMS_0000\", %{code: \"222333\"})\n# {:error, :http_error, \"REASON\"}\n\nAliyun.Sms.send_sms(\"1500000000\", \"阿里云短信测试专用\", \"SMS_0000\", %{code: \"222333\"})\n# {:error, :json_decode_error, \"BODY\"}\n```\n\n## Documentation\n- [https://hexdocs.pm/aliyun_sms](https://hexdocs.pm/aliyun_sms)\n\n- [阿里云官方文档](https://help.aliyun.com/document_detail/102715.html?spm=a2c4g.11186623.2.9.64da5f30jYcBMx#concept-t4w-pcs-ggb)\n\n| Aliyun | Description | This package |\n| ---------- | ----------- | --------------- |\n| SendSMS    | 发送短信。    | `Aliyun.Sms.send_sms/6` |\n| SendBatchSms | 批量发送短信。| [TODO] |\n| QuerySendDetails | 查询短信发送的状态。 | [TODO] |\n| AddSmsSign | 调用短信AddSmsSign申请短信签名。 | [TODO] |\n| DeleteSmsSign | 调用接口DeleteSmsSign删除短信签名。 | [TODO] |\n| QuerySmsSign | 调用接口QuerySmsSign查询短信签名申请状态。 | [TODO] |\n| ModifySmsSign | 调用接口ModifySmsSign修改未审核通过的短信签名，并重新提交审核。 | [TODO] |\n| ModifySmsTemplate |\t调用接口ModifySmsTemplate修改未通过审核的短信模板。 | [TODO] |\n| QuerySmsTemplate |\t调用接口QuerySmsTemplate查询短信模板的审核状态。 | [TODO] |\n| AddSmsTemplate |\t调用接口AddSmsTemplate申请短信模板。 | [TODO] |\n| DeleteSmsTemplate |\t调用接口DeleteSmsTemplate删除短信模板。 | [TODO] |","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fug0%2Faliyun_sms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fug0%2Faliyun_sms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fug0%2Faliyun_sms/lists"}