{"id":28539371,"url":"https://github.com/yourtion/node-dysms","last_synced_at":"2025-09-01T20:08:52.205Z","repository":{"id":57217932,"uuid":"100729010","full_name":"yourtion/node-dysms","owner":"yourtion","description":"Alidayu SMS (dysmsapi.aliyuncs.com) for Node.js simple","archived":false,"fork":false,"pushed_at":"2017-08-27T00:15:01.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-09T05:21:18.478Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/dysms","language":"JavaScript","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/yourtion.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":"2017-08-18T16:04:59.000Z","updated_at":"2018-04-18T01:36:20.000Z","dependencies_parsed_at":"2022-08-28T21:40:39.263Z","dependency_job_id":null,"html_url":"https://github.com/yourtion/node-dysms","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/yourtion/node-dysms","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yourtion%2Fnode-dysms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yourtion%2Fnode-dysms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yourtion%2Fnode-dysms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yourtion%2Fnode-dysms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yourtion","download_url":"https://codeload.github.com/yourtion/node-dysms/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yourtion%2Fnode-dysms/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273183228,"owners_count":25059812,"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-09-01T02:00:09.058Z","response_time":120,"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":"2025-06-09T18:31:41.399Z","updated_at":"2025-09-01T20:08:52.197Z","avatar_url":"https://github.com/yourtion.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-dysms\n\nAlidayu SMS (dysmsapi.aliyuncs.com) for Node.js witout async function.\n\n阿里大于（阿里云服务版）Node.js 客户端，不需要 Async 方法（阿里大于官方客户端居然要 async，只好手撸一个简单的版本。\n\n## 安装使用使用\n\n```bash\nnpm install dysms --save\n```\n\n```javascript\nconst Alidayu = require('dysms');\n\n// 初始化客户端\nconst client = new Alidayu({ \n  AccessKeyId: 'Your-AccessKeyId', \n  AccessKeySecret: 'Your-AccessKeySecret' \n});\n\n// 发送短信（Promise）\nclient.sms({\n  phone: 13800138000,\n  sign: '签名',\n  template: 'SMS_8xxxxx',\n  params: { user: 'Yourtion' },\n})\n.then(console.log)\n.catch(console.log);\n\n// 发送短信（Callback）\nclient.sms({\n  phone: 13800138000,\n  sign: '签名',\n  template: 'SMS_8xxxxx',\n  params: { user: 'Yourtion' },\n}, (err, data) =\u003e {console.log(err, data)});\n```\n\n详情参数指定\n\n```javascript\n/**\n* 发送短信\n* @param {Object} option - 发送短信配置\n* @param {Number} option.phone - 手机号\n* @param {String} option.sign - 签名\n* @param {String} option.template - 模版\n* @param {Object} option.params - 模版参数\n* @param {Function} callback - 回调函数\n* @return {Promise} \n*/\nsms(option, callback)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyourtion%2Fnode-dysms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyourtion%2Fnode-dysms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyourtion%2Fnode-dysms/lists"}