{"id":42499861,"url":"https://github.com/linxlib/cmiot_v2","last_synced_at":"2026-01-28T13:03:45.073Z","repository":{"id":57510671,"uuid":"238173232","full_name":"linxlib/cmiot_v2","owner":"linxlib","description":" china mobile iot sdk v2","archived":false,"fork":false,"pushed_at":"2020-02-28T09:13:04.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T08:05:53.445Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/linxlib.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":"2020-02-04T09:54:06.000Z","updated_at":"2024-06-20T08:05:53.446Z","dependencies_parsed_at":"2022-09-26T17:50:56.077Z","dependency_job_id":null,"html_url":"https://github.com/linxlib/cmiot_v2","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/linxlib/cmiot_v2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linxlib%2Fcmiot_v2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linxlib%2Fcmiot_v2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linxlib%2Fcmiot_v2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linxlib%2Fcmiot_v2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linxlib","download_url":"https://codeload.github.com/linxlib/cmiot_v2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linxlib%2Fcmiot_v2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28845783,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T13:02:32.985Z","status":"ssl_error","status_checked_at":"2026-01-28T13:02:04.945Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2026-01-28T13:03:44.760Z","updated_at":"2026-01-28T13:03:45.067Z","avatar_url":"https://github.com/linxlib.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cmiot_v2\n 中移v2接口sdk go版（非官方）\n \n# 适用\n\n- https://api.iot.10086.cn/v2/ ， 移动旧平台， [官方接口文档地址](https://api.iot.10086.cn/api/index.html#/resourceCenter/docDownload)\n \n# 版本\n\n[![GitHub version](https://badge.fury.io/gh/linxlib%2Fcmiot_v2.svg)](https://badge.fury.io/gh/linxlib%2Fcmiot_v2)\n\n# 使用方法\n\n```go\npackage main\n\nimport (\n    cmiot \"github.com/linxlib/cmiot_v2\"\n)\n\nconst (\n\tAPPID    = \"xxxx\"\n\tPASSWORD = \"xxxx\"\n\tECID     = \"xxxx\"\n)\n\nfunc main()  {\n    c := cmiot.NewCMIOTClient(APPID, PASSWORD, ECID)\n \tc.SetForwarderId(\"ip\")\n \tc.SetDebug(false)\n}\n\n```\n\n- `SetForwarderId` 官方后台指定的白名单服务器的ip地址，不需要把程序跑在白名单服务上，也不需要使用代理服务器\n- `SetDebug` 设为true则在终端输出http请求内容和返回的数据\n\n# 进度\n目前暂只实现了部分单卡查询的接口， 批量查询的尚未实现\n\n# 注意\n- sdk未经过完全测试\n- 如果开多个协程进行调用， 需要控制请求频率， 否则容易无法返回正常的数据。 可能在多台电脑上开多个程序（手动分布式）运行会比较好。\n\n# 引用\nsdk引用了部分第三方库的代码\n\n- `https://github.com/guonaihong/gout` 中的Query Encode代码\n- `https://github.com/NETkiddy/cmq-go` 中的http请求的部分代码\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinxlib%2Fcmiot_v2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinxlib%2Fcmiot_v2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinxlib%2Fcmiot_v2/lists"}