物联网卡管理,那个物联网卡API怎么调用,有没什么范例,我想查某个模块的流量情况

api.openluat.com这个服务

我用nodejs或者Python都可以

请先 登录 后评论

1 个回答

安超

这里,以python调用物联卡指定日期用量日志查询为例:


  1. import requests
  2. from requests.auth importHTTPBasicAuth
  3. url ='https://api.openluat.com/sim/iotcard/usagelog'
  4. payload ={
  5. 'msisdns':'123345,234567',
  6. 'query_date':'20180827',
  7. }
  8. appkey ='your app key'
  9. appsecret ='your app secret'
  10. #appkey,appsecret是在 http://sim.openluat.com/apiinterface 获取的
  11. #在 http://sim.openluat.com/apiinterface 查看自己的appkey,appsecret。
  12. auth =HTTPBasicAuth(appkey, appsecret)
  13. requests.post(url, json=payload, auth=auth)
请先 登录 后评论
  • 1 关注
  • 0 收藏,2413 浏览
  • 周海富 提出于 2018-08-27 23:40

相似问题