API Key & Notification Key的获取请通过Cube平台自助操作,详见说明文档
add at
2.0
PartnerClient client = new PartnerClient(accessKey,privateKey) client.v2().sim().queryBundles(new QueryBundles(12, "89852202306250040073"))
curl --location --request GET 'https://api.linksfield.net/cube/v4/sims//bundles?status=0,1,2&page_no=1&page_size=100' \ --header 'Accept-Language: zh-CN' \ --header 'Authorization: ' \ --header 'X-LF-Api-Version;' \ --header 'X-LF-Signature-Type;' \ --header 'timestamp;' \ --header 'nonce;' \ --header 'Content-Type: application/json'
{ "data": [ { "id": "LP20230619004077", "status": 1, "type": 1, "use": 3, "data_limit": -1, "period_unit": 2, "period_number": 1, "cycles": 20, "current_cycle": 1, "current_cycle_start_at": 1688109330000, "current_cycle_end_at": 1688140799000, "current_cycle_usage": null, "added_at": 1688109329000, "start_at": 1688109330000, "end_at": null, "order_id": "SO-1234521242454" }, { "id": "LP20230619004077", "status": 2, "type": 1, "use": 3, "data_limit": -1, "period_unit": 2, "period_number": 1, "cycles": 36, "current_cycle": 1, "current_cycle_start_at": 1687748724000, "current_cycle_end_at": 1688140799000, "current_cycle_usage": null, "added_at": 1687744371000, "start_at": 1687748724000, "end_at": null, "order_id": "SO-1234521242454" }, { "id": "LP20230619004077", "status": 0, "type": 1, "use": 3, "data_limit": -1, "period_unit": 2, "period_number": 1, "cycles": 15, "current_cycle": null, "current_cycle_start_at": null, "current_cycle_end_at": null, "current_cycle_usage": null, "added_at": 1688109456000, "start_at": null, "end_at": null, "order_id": "SO-1234521242454" }, { "id": "LP20230619004077", "status": 0, "type": 1, "use": 3, "data_limit": -1, "period_unit": 2, "period_number": 1, "cycles": 3, "current_cycle": null, "current_cycle_start_at": null, "current_cycle_end_at": null, "current_cycle_usage": null, "added_at": 1688607448000, "start_at": null, "end_at": null, "order_id": "SO-1234521242454" }, { "id": "LP20230619004077", "status": 0, "type": 1, "use": 3, "data_limit": -1, "period_unit": 2, "period_number": 1, "cycles": 3, "current_cycle": null, "current_cycle_start_at": null, "current_cycle_end_at": null, "current_cycle_usage": null, "added_at": 1688607493000, "start_at": null, "end_at": null, "order_id": "SO-1234521242454" } ], "status": { "code": "CB-00-0000", "message": "成功", "detail": "https://apidoc-cn.iotcube.link" }, "total_count": 5 }