{"id":28539318,"url":"https://github.com/yourtion/node-icbc-open","last_synced_at":"2026-07-13T10:32:22.136Z","repository":{"id":57147857,"uuid":"164090729","full_name":"yourtion/node-icbc-open","owner":"yourtion","description":null,"archived":false,"fork":false,"pushed_at":"2019-02-13T03:30:05.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-29T08:42:01.992Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/yourtion.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}},"created_at":"2019-01-04T10:01:50.000Z","updated_at":"2019-02-13T03:30:07.000Z","dependencies_parsed_at":"2022-09-06T16:40:27.341Z","dependency_job_id":null,"html_url":"https://github.com/yourtion/node-icbc-open","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yourtion/node-icbc-open","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yourtion%2Fnode-icbc-open","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yourtion%2Fnode-icbc-open/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yourtion%2Fnode-icbc-open/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yourtion%2Fnode-icbc-open/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yourtion","download_url":"https://codeload.github.com/yourtion/node-icbc-open/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yourtion%2Fnode-icbc-open/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35420322,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-13T02:00:06.543Z","response_time":119,"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:36.149Z","updated_at":"2026-07-13T10:32:22.118Z","avatar_url":"https://github.com/yourtion.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![NPM version][npm-image]][npm-url]\n[![node version][node-image]][node-url]\n[![npm download][download-image]][download-url]\n[![npm license][license-image]][download-url]\n\n[npm-image]: https://img.shields.io/npm/v/icbc-open.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/icbc-open\n[node-image]: https://img.shields.io/badge/node.js-%3E=4.0-green.svg?style=flat-square\n[node-url]: http://nodejs.org/download/\n[download-image]: https://img.shields.io/npm/dm/icbc-open.svg?style=flat-square\n[download-url]: https://npmjs.org/package/icbc-open\n[license-image]: https://img.shields.io/npm/l/icbc-open.svg\n\n# node-icbc-open\n\n掌上生活开放平台（ https://open.cmbchina.com/Platform/ ） Node.js SDK\n\n## 安装\n\n```bash\nnpm install icbc-open --save\n```\n\n## 使用\n\n```javascript\nconst ICBC = require(\"icbc-open\");\n\nconst icbc = new ICBC({\n  appId: \"10000000000000\",\n  mertId: \"00000000\",\n  aesKey: \"xxxx\", // base64 aseKey\n  icbcPublicKey: \"\",\n  privateKey: fs.readFileSync(\"prod.key\").toString(),\n});\n\n// 登录获取用户信息\nconst userInfo = icbc.getUserInfo(\"xxxx\"); // Base64 from APP\n\n// 手机号发券\nawait icbc.sendEcouponByMobile(\"XXX\", 1234566, \"13800138000\");\n// 手机号发券查询\nawait icbc.queryEcouponByMobile(\"XXX\", 1234566, \"13800138000\");\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyourtion%2Fnode-icbc-open","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyourtion%2Fnode-icbc-open","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyourtion%2Fnode-icbc-open/lists"}