{"id":23977987,"url":"https://github.com/beary/aliyun-iot-sdk","last_synced_at":"2025-07-28T11:07:17.767Z","repository":{"id":34913224,"uuid":"189421362","full_name":"beary/aliyun-iot-sdk","owner":"beary","description":"Aliyun Server Side IoT SDK for Node.js.（阿里云 IoT 服务端 SDK）","archived":false,"fork":false,"pushed_at":"2025-07-22T01:45:17.000Z","size":80,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-22T03:33:25.531Z","etag":null,"topics":["aliyun","iot","iothub","nodejs","sdk"],"latest_commit_sha":null,"homepage":"https://npmjs.org/package/aliyun-iot-sdk","language":"TypeScript","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/beary.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-05-30T13:45:02.000Z","updated_at":"2025-07-22T01:45:18.000Z","dependencies_parsed_at":"2024-03-17T12:36:30.780Z","dependency_job_id":"adf77e3d-773e-48c5-9701-8abc42998b0b","html_url":"https://github.com/beary/aliyun-iot-sdk","commit_stats":{"total_commits":22,"total_committers":2,"mean_commits":11.0,"dds":0.2272727272727273,"last_synced_commit":"b13664efcaa80bf1ba5f28482540a98887418ee8"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/beary/aliyun-iot-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beary%2Faliyun-iot-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beary%2Faliyun-iot-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beary%2Faliyun-iot-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beary%2Faliyun-iot-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beary","download_url":"https://codeload.github.com/beary/aliyun-iot-sdk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beary%2Faliyun-iot-sdk/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266497335,"owners_count":23938726,"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-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["aliyun","iot","iothub","nodejs","sdk"],"created_at":"2025-01-07T08:16:00.001Z","updated_at":"2025-07-28T11:07:17.736Z","avatar_url":"https://github.com/beary.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aliyun-iot-sdk\n\u003e ♥ 🇹🇸 纯 TypeScript 实现，提供完整声明文件\n\nAliyun Server Side IoT SDK for Node.js.（阿里云 IoT 服务端 Node.js SDK）\n\n## 旧版 API\n查看旧版 (0.0.5) API [点击此处](https://github.com/beary/aliyun-iot-sdk/tree/0.0.5#aliyun-iot-sdk)\n\n## 使用示例\n\n```typescript\nimport { Client } from 'aliyun-iot-sdk'\n\n// 新建客户端\nconst client = new Client({\n  accessKeyId: '\u003cxxxxx\u003e',\n  accessKeySecret: '\u003cxxxxx\u003e',\n  regionId: 'cn-shanghai'\n})\n\n// 调用接口\nclient.request({\n  Action: 'GetDeviceShadow',\n  DeviceName: 'test',\n  ProductKey: 'test'\n})\n```\n\n## API\n\n### 新建客户端\n- new Client()\n\n### 发送请求\n- Client.request(requestParameters)\n\n  - requestParameters 请求参数，目前已经添加类型声明的接口在下面的列表中，对于没有添加类型声明的接口，使用 ts 时用 `as any` 过度\n  - 返回值是一个 [axios](https://github.com/axios/axios) 的请求结果\n\n## 声明文件完成进度\n\n- 产品管理\n  - [x] [createProduct](https://help.aliyun.com/document_detail/69123.html)\n  - [ ] [updateProduct](https://help.aliyun.com/document_detail/69267.html)\n  - [ ] [queryProductList](https://help.aliyun.com/document_detail/69271.html)\n  - [ ] [queryProduct](https://help.aliyun.com/document_detail/69272.html)\n  - [ ] [deleteProduct](https://help.aliyun.com/document_detail/89858.html)\n  - [ ] [createProductTags](https://help.aliyun.com/document_detail/101839.html)\n  - [ ] [updateProductTags](https://help.aliyun.com/document_detail/101862.html)\n  - [ ] [deleteProductTags](https://help.aliyun.com/document_detail/101865.html)\n  - [ ] [listProductTags](https://help.aliyun.com/document_detail/101869.html)\n  - [ ] [listProductByTags](https://help.aliyun.com/document_detail/101872.html)\n- 设备管理\n  - [ ] [registerDevice](https://help.aliyun.com/document_detail/69470.html)\n  - [ ] [queryDeviceDetail](https://help.aliyun.com/document_detail/69594.html)\n  - [ ] [queryDevice](https://help.aliyun.com/document_detail/69905.html)\n  - [ ] [deleteDevice](https://help.aliyun.com/document_detail/69281.html)\n  - [ ] [getDeviceStatus](https://help.aliyun.com/document_detail/69617.html)\n  - [ ] [batchGetDeviceState](https://help.aliyun.com/document_detail/69906.html)\n  - [ ] [disableThing](https://help.aliyun.com/document_detail/69602.html)\n  - [ ] [enableThing](https://help.aliyun.com/document_detail/69603.html)\n  - [ ] [batchCheckDeviceNames](https://help.aliyun.com/document_detail/69482.html)\n  - [ ] [batchRegisterDeviceWithApplyId](https://help.aliyun.com/document_detail/69514.html)\n  - [ ] [batchRegisterDevice](https://help.aliyun.com/document_detail/69473.html)\n  - [ ] [queryBatchRegisterDeviceStatus](https://help.aliyun.com/document_detail/69483.html)\n  - [ ] [queryPageByApplyId](https://help.aliyun.com/document_detail/69518.html)\n  - [ ] [queryDeviceEventData](https://help.aliyun.com/document_detail/69573.html)\n  - [ ] [queryDevicePropertyData](https://help.aliyun.com/document_detail/69539.html)\n  - [ ] [queryDevicePropertiesData](https://help.aliyun.com/document_detail/99237.html)\n  - [ ] [queryDeviceServiceData](https://help.aliyun.com/document_detail/69574.html)\n  - [ ] [invokeThingService](https://help.aliyun.com/document_detail/69584.html)\n  - [ ] [invokeThingsService](https://help.aliyun.com/document_detail/96242.html)\n  - [ ] [queryDevicePropertyStatus](https://help.aliyun.com/document_detail/69593.html)\n  - [ ] [setDeviceProperty](https://help.aliyun.com/document_detail/69579.html)\n  - [ ] [setDevicesProperty](https://help.aliyun.com/document_detail/96243.html)\n  - [ ] [saveDeviceProp](https://help.aliyun.com/document_detail/69618.html)\n  - [ ] [queryDeviceProp](https://help.aliyun.com/document_detail/69633.html)\n  - [ ] [deleteDeviceProp](https://help.aliyun.com/document_detail/69635.html)\n  - [ ] [getThingTopo](https://help.aliyun.com/document_detail/69770.html)\n  - [ ] [notifyAddThingTopo](https://help.aliyun.com/document_detail/69771.html)\n  - [ ] [removeThingTopo](https://help.aliyun.com/document_detail/69772.html)\n  - [ ] [queryDeviceStatistics](https://help.aliyun.com/document_detail/69605.html)\n  - [ ] [getGatewayBySubDevice](https://help.aliyun.com/document_detail/87257.html)\n  - [ ] [queryDeviceByTags](https://help.aliyun.com/document_detail/96255.html)\n  - [ ] [setDeviceDesiredProperty](https://help.aliyun.com/document_detail/107582.html)\n  - [ ] [queryDeviceDesiredProperty](https://help.aliyun.com/document_detail/107582.html)\n  - [ ] [queryDeviceFileList](https://help.aliyun.com/document_detail/112001.html)\n  - [ ] [queryDeviceFile](https://help.aliyun.com/document_detail/112002.html)\n  - [ ] [deleteDeviceFile](https://help.aliyun.com/document_detail/112003.html)\n  - [ ] [batchUpdateDeviceNickname](https://help.aliyun.com/document_detail/112165.html)\n  - [ ] [queryLoRaJoinPermissions](https://help.aliyun.com/document_detail/109293.html)\n  - [ ] [createLoRaNodesTask](https://help.aliyun.com/document_detail/109299.html)\n  - [ ] [getLoraNodesTask](https://help.aliyun.com/document_detail/109304.html)\n- 分组管理\n  - [ ] [createDeviceGroup](https://help.aliyun.com/document_detail/93350.html)\n  - [ ] [deleteDeviceGroup](https://help.aliyun.com/document_detail/93353.html)\n  - [ ] [updateDeviceGroup](https://help.aliyun.com/document_detail/93367.html)\n  - [ ] [queryDeviceGroupInfo](https://help.aliyun.com/document_detail/93355.html)\n  - [ ] [queryDeviceGroupList](https://help.aliyun.com/document_detail/93356.html)\n  - [ ] [batchAddDeviceGroupRelations](https://help.aliyun.com/document_detail/93358.html)\n  - [ ] [batchDeleteDeviceGroupRelations](https://help.aliyun.com/document_detail/93543.html)\n  - [ ] [setDeviceGroupTags](https://help.aliyun.com/document_detail/93362.html)\n  - [ ] [queryDeviceGroupTagList](https://help.aliyun.com/document_detail/93360.html)\n  - [ ] [queryDeviceGroupByDevice](https://help.aliyun.com/document_detail/98199.html)\n  - [ ] [querySuperDeviceGroup](https://help.aliyun.com/document_detail/99196.html)\n  - [ ] [queryDeviceListByDeviceGroup](https://help.aliyun.com/document_detail/99310.html)\n  - [ ] [queryDeviceGroupByTags](https://help.aliyun.com/document_detail/102323.html)\n- 规则引擎\n  - [ ] [listRule](https://help.aliyun.com/document_detail/69486.html)\n  - [ ] [createRule](https://help.aliyun.com/document_detail/69495.html)\n  - [ ] [getRule](https://help.aliyun.com/document_detail/69508.html)\n  - [ ] [updateRule](https://help.aliyun.com/document_detail/69513.html)\n  - [ ] [deleteRule](https://help.aliyun.com/document_detail/69516.html)\n  - [ ] [listRuleActions](https://help.aliyun.com/document_detail/69517.html)\n  - [ ] [getRuleAction](https://help.aliyun.com/document_detail/69519.html)\n  - [ ] [createRuleAction](https://help.aliyun.com/document_detail/69586.html)\n  - [ ] [updateRuleAction](https://help.aliyun.com/document_detail/69591.html)\n  - [ ] [deleteRuleAction](https://help.aliyun.com/document_detail/69520.html)\n  - [ ] [startRule](https://help.aliyun.com/document_detail/69666.html)\n  - [ ] [stopRule](https://help.aliyun.com/document_detail/69667.html)\n- Topic 管理\n  - [ ] [queryProductTopic](https://help.aliyun.com/document_detail/69647.html)\n  - [ ] [createProductTopic](https://help.aliyun.com/document_detail/69649.html)\n  - [ ] [updateProductTopic](https://help.aliyun.com/document_detail/69650.html)\n  - [ ] [deleteProductTopic](https://help.aliyun.com/document_detail/69648.html)\n  - [ ] [createTopicRouteTable](https://help.aliyun.com/document_detail/69910.html)\n  - [ ] [queryTopicRouteTable](https://help.aliyun.com/document_detail/69918.html)\n  - [ ] [queryTopicReverseRouteTable](https://help.aliyun.com/document_detail/69922.html)\n  - [ ] [deleteTopicRouteTable](https://help.aliyun.com/document_detail/69926.html)\n- 消息通信\n  - [x] [pub](https://help.aliyun.com/document_detail/69793.html)\n  - [x] [rRpc](https://help.aliyun.com/document_detail/69797.html)\n  - [x] [pubBroadcast](https://help.aliyun.com/document_detail/69909.html)\n- 设备影子\n  - [x] [getDeviceShadow](https://help.aliyun.com/document_detail/69953.html)\n  - [x] [updateDeviceShadow](https://help.aliyun.com/document_detail/69954.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeary%2Faliyun-iot-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeary%2Faliyun-iot-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeary%2Faliyun-iot-sdk/lists"}