{"id":26512991,"url":"https://github.com/timlentse/aliyun_sms","last_synced_at":"2026-02-23T08:33:40.886Z","repository":{"id":59150530,"uuid":"85817348","full_name":"timlentse/aliyun_sms","owner":"timlentse","description":"Ruby SDK For Aliyun SMS Service","archived":false,"fork":false,"pushed_at":"2017-07-03T15:33:06.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-29T17:34:10.559Z","etag":null,"topics":["aliyun-sms","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/timlentse.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-22T10:57:54.000Z","updated_at":"2017-12-14T08:43:09.000Z","dependencies_parsed_at":"2022-09-13T10:50:12.748Z","dependency_job_id":null,"html_url":"https://github.com/timlentse/aliyun_sms","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/timlentse/aliyun_sms","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timlentse%2Faliyun_sms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timlentse%2Faliyun_sms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timlentse%2Faliyun_sms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timlentse%2Faliyun_sms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timlentse","download_url":"https://codeload.github.com/timlentse/aliyun_sms/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timlentse%2Faliyun_sms/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29740017,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T07:44:07.782Z","status":"ssl_error","status_checked_at":"2026-02-23T07:44:07.432Z","response_time":90,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["aliyun-sms","ruby"],"created_at":"2025-03-21T04:19:19.841Z","updated_at":"2026-02-23T08:33:40.865Z","avatar_url":"https://github.com/timlentse.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AliyunSms\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'aliyun_sms'\n```\n\nAnd then execute:\n\n```sh\n$ bundle\n```\nOr install it yourself as:\n\n```sh\n$ gem install aliyun_sms\n```\n## Usage\n\n### 1. Configure first\n\n``` ruby\nAliyunSms.configure do |config|\n\nconfig.access_key_id = 'testid'\nconfig.access_key_secret = 'testsecret'\n\n# config.format = \"XML\"   ## optional(default 'JSON')\n# config.region_id = \"cn-hangzhou\"  ## optional\n\nend\n```\n\n### 2. Send a message\n\n``` ruby\nargs = {:phone=\u003e\"123456789\",:sign_name=\u003e\"标签测试\", :tpl_id=\u003e\"SMS_1650053\", :params=\u003e{\"code\":\"1234\"}}\nAliyunSms.to args\n```\n\n## Integrated with Rails\n\nPut a files(named `aliyun_sms.rb` for example) in `config/initializers/` and the content can be the following:\n\n```ruby\n## config/initializers/aliyun_sms.rb\nAliyunSms.configure do |config|\n\nconfig.access_key_id = 'testid'\nconfig.access_key_secret = 'testsecret'\n\n# config.format = \"XML\"   ## optional(default 'JSON')\n# config.region_id = \"cn-hangzhou\"  ## optional\nend\n\n```\nNow You can send a message in controller:\n\n```ruby\nAliyunSms.to {:phone=\u003e\"123456789\",:sign_name=\u003e\"标签测试\", :tpl_id=\u003e\"SMS_1650053\", :params=\u003e{\"code\":\"1234\"}}\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/timlentse/aliyun_sms. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimlentse%2Faliyun_sms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimlentse%2Faliyun_sms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimlentse%2Faliyun_sms/lists"}