{"id":16296859,"url":"https://github.com/windomz/go-alidayu","last_synced_at":"2025-04-09T13:36:10.072Z","repository":{"id":57523788,"uuid":"51824593","full_name":"WindomZ/go-alidayu","owner":"WindomZ","description":":mailbox_with_mail: Light, queue and faster for alidayu API","archived":false,"fork":false,"pushed_at":"2017-06-22T16:10:33.000Z","size":28,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T07:42:12.527Z","etag":null,"topics":["alidayu","go","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","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/WindomZ.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-02-16T09:40:42.000Z","updated_at":"2018-04-19T09:55:34.000Z","dependencies_parsed_at":"2022-08-28T11:21:39.086Z","dependency_job_id":null,"html_url":"https://github.com/WindomZ/go-alidayu","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WindomZ%2Fgo-alidayu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WindomZ%2Fgo-alidayu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WindomZ%2Fgo-alidayu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WindomZ%2Fgo-alidayu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WindomZ","download_url":"https://codeload.github.com/WindomZ/go-alidayu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248050133,"owners_count":21039329,"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":["alidayu","go","golang"],"created_at":"2024-10-10T20:24:12.698Z","updated_at":"2025-04-09T13:36:10.044Z","avatar_url":"https://github.com/WindomZ.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-alidayu\n\n## Overview\n\n* 基于最新[阿里大鱼API](http://www.alidayu.com/doc)\n* 支持短信验证码、语音双呼、文本转语音通知、语音通知及短信发送记录查询\n* 提供了简单轻量化的并发队列\n* 方便自行封装\n* 支持回调跟踪\n\n## Installation\n\n```bash\ngo get -u github.com/WindomZ/go-alidayu\n```\n\n## Usage\n\n```go\npackage main\nimport . \"github.com/WindomZ/go-alidayu\"\n\nfunc init() {\n\tInitAlidayu(true, \"12345678\", \"88888888888888888888888888888888\") // 初始化服务， 配置Key和Secret\n}\n\nfunc main() {\n\t// 构建短信\n\tmsg := NewMessageSms(\"身份验证\").SetTel(\"13088888888\").\n\t\tSetContent(\n\t\t\t\"SMS_1234567\",\n\t\t\tmap[string]string{\n\t\t\t\t\"code\":    \"1\",\n\t\t\t\t\"product\": \"2\",\n\t\t\t},\n\t\t)\n\t// 异步发送短信\n    if err := SendMessageQueue(msg, func(msg interface{}, cnt int, err error) {\n    }); err != nil {\n    \tpanic(err)\n    }\n    // Or 同步发送短信\n    if err := SendMessageDirect(msg); err != nil {\n    \tpanic(err)\n    }\n\t`...do other things...`\n}\n```\n\n## Documentation\n\n可以先基于 *_test.go 进行了解\n(需要在`tests/init.go`中配置正确的API调用参数)\n\n完善中...\n\n## TODO\n\n* 简洁方便的文档\n* 语音双呼、文本转语音通知、语音通知的测试用例\n* 提供封装实例方案\n* 更多阿里大鱼反馈支持\n\n## LICENSE\n\nMIT(http://opensource.org/licenses/mit-license.php)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwindomz%2Fgo-alidayu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwindomz%2Fgo-alidayu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwindomz%2Fgo-alidayu/lists"}