接口文档(第2批,共5个,已部署5个).txt 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # --- test 2006 删除指定车辆 ---
  2. url = 'http://58.34.94.177:29101/v6/api'
  3. data = {
  4. 'code': 2006, # 接口号
  5. 'uuid': '65dbe96949fbe311a3a01d30', # 车辆id(必须项)
  6. }
  7. response = requests.post(url=url, json=data, headers={'authorization': token})
  8. print(response.json())
  9. # --- test 2007 获取指定作业车辆详情 ---
  10. url = 'http://58.34.94.177:29101/v6/api'
  11. data = {
  12. 'code': 2007, # 接口号
  13. 'uuid': '65de9fa044b74ae33732d811', # 车辆id(必须项)
  14. }
  15. response = requests.post(url=url, json=data, headers={'authorization': token})
  16. print(response.json())
  17. # --- test 1005 启用指定用户 ---
  18. url = 'http://58.34.94.177:29101/v6/api'
  19. data = {
  20. 'code': 1005, # 接口号
  21. 'uuid': '65decb7744b74ae33732d813', # 用户id(必须项)
  22. }
  23. response = requests.post(url=url, json=data, headers={'authorization': token})
  24. print(response.json())
  25. # --- test 1006 获取指定用户详情 ---
  26. url = 'http://58.34.94.177:29101/v6/api'
  27. data = {
  28. 'code': 1006, # 接口号
  29. 'uuid': '65decb7744b74ae33732d813', # 用户id(必须项)
  30. }
  31. response = requests.post(url=url, json=data, headers={'authorization': token})
  32. print(response.json())
  33. # --- test 3002 下载指定驾驶人员操作日志 ---
  34. url = 'http://58.34.94.177:29101/v6/api?code=3002'
  35. response = requests.get(url=url)