{"id":20732386,"url":"https://github.com/jpush/jsms-api-python-client","last_synced_at":"2026-04-19T22:08:52.917Z","repository":{"id":62572773,"uuid":"116640257","full_name":"jpush/jsms-api-python-client","owner":"jpush","description":null,"archived":false,"fork":false,"pushed_at":"2020-03-18T05:09:53.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-12-26T10:46:56.694Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/jpush.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":"2018-01-08T06:45:13.000Z","updated_at":"2021-09-13T03:00:18.000Z","dependencies_parsed_at":"2022-11-03T18:27:43.184Z","dependency_job_id":null,"html_url":"https://github.com/jpush/jsms-api-python-client","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/jpush/jsms-api-python-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpush%2Fjsms-api-python-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpush%2Fjsms-api-python-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpush%2Fjsms-api-python-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpush%2Fjsms-api-python-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jpush","download_url":"https://codeload.github.com/jpush/jsms-api-python-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpush%2Fjsms-api-python-client/sbom","scorecard":{"id":536247,"data":{"date":"2025-08-11","repo":{"name":"github.com/jpush/jsms-api-python-client","commit":"aff0bcce508de7ea54ceefdbdafc781dc0a6dac2"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/13 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-20T07:02:58.705Z","repository_id":62572773,"created_at":"2025-08-20T07:02:58.705Z","updated_at":"2025-08-20T07:02:58.705Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32024372,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"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":"2024-11-17T05:19:09.969Z","updated_at":"2026-04-19T22:08:52.900Z","avatar_url":"https://github.com/jpush.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSMS API PYTHON CLIENT\n\n这是短信 API 的 Python 版本封装开发包，是由极光官方提供的，一般支持最新的 API 功能。支持 Python 2.7 和 Python 3 常见版本。\n\n对应的 API 文档：https://docs.jiguang.cn/jsms/server/rest_api_summary/\n\n## Installing\n\n```bash\n$ pip install jsms\n```\n\n## Usage\n\n### 初始化\n\n```python\nimport jsms\njsms_client = jsms.Jsms(app_key, master_secret)\n```\n\n### 发送验证码\n\n```python\njsms_client.send_code(mobile, temp_id)\n```\n\n**参数说明:**\n\n\u003e mobile: 接收验证码的手机号码\n\n\u003e temp_id: 模板ID\n\n### 发送语音短信验证码\n\n```python\njsms_client.send_voice_code(mobile, code=None, lang=None, ttl=None)\n```\n\n**参数说明:**\n\n\u003e mobile: 接收验证码的手机号码\n\n\u003e ttl: 超时时间，默认为 60 秒\n\n\u003e code: 语音验证码的值，验证码仅支持 4-8 个数字\n\n\u003e lang: 播报语言选择，0：中文播报，1：英文播报，2：中英混合播报\n\n### 验证\n\n```python\njsms_client.verify_code( msg_id, code);\n```\n\n**参数说明:**\n\n\u003e msg_id: 发送验证码 `send_code/send_voice_code` 函数返回的数组中的 msg_id 键对应的值\n\n\u003e code: 手机接收到的验证码\n\n### 发送模板短信\n\n```python\njsms_client.send_teml(mobile, temp_id, temp_para=None, time=None)\n```\n\n**参数说明:**\n\n\u003e mobile: 接收验证码的手机号码\n\n\u003e temp_id: 模板 ID\n\n\u003e temp_para: 模板参数，需要替换的参数名和 value 的键值对，接受一个 dict\n\n\u003e time: 定时短信发送时间，格式为 yyyy-MM-dd HH:mm:ss，默认为 `None` 表示立即发送\n\n### 查询定时模板短信\n\n```python\njsms_client.show_schedule_message(schedule_id)\n```\n\n### 删除定时模板短信\n\n```python\njsms_client.delete_schedule_message(schedule_id)\n```\n\n### 应用余量查询\n\n```python\njsms_client.app_balance()\n```\n\n### 调用返回码说明\n\nhttps://docs.jiguang.cn/jsms/server/rest_api_summary/#_1\n\n## Example\n\n在项目的 [examples](https://github.com/jpush/jsms-api-python-client/tree/master/examples) 文件夹有简单示例代码, 开发者可以参考其中的样例快速了解该库的使用方法。\n\n### 简单使用方法\n\n- 复制 config.py 文件\n\n```bash\n$ cp config.py.example config.py\n```\n\n- 编辑 config.py 文件，填写信息\n\n```python\napp_key = 'xxxx'\nmaster_secret = 'xxxx'\nmobile = 'xxxx'\n```\n\n- 运行示例\n\n```bash\n$ python examples/sms.py text_code\n$ python examples/sms.py voice_code\n$ python examples/sms.py tmpl_task\n$ python examples/sms.py blance\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/jpush/jsms-api-python-client.\n\n## License\n\nThe library is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpush%2Fjsms-api-python-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjpush%2Fjsms-api-python-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpush%2Fjsms-api-python-client/lists"}