例子:token

  • Headers.Authorization
  1. #url编码
  2. %7B%22username%22%3A%22%E8%B4%BA%E5%90%91%E4%B8%9C%22%2C%22token%22%3A%22A%40d1a9471ed0732609e4c013361c64359e%22%7D
  3. #url解码
  4. {
  5. "loginName": "18409201402",
  6. "password": "04da748f8d17cbf65fa84847a46bdb02",
  7. "channel": "APP"
  8. }
  9. PASSWORD = 原密码
  10. ENCODEPASSWORD = MD532L(user.username + MD532L(password))

例子:传递数据

  • body
  1. {
  2. "username":"贺向东测试",
  3. "gatewayid":434,
  4. "deviceid":1657,
  5. "plusePerCubicMeter":30,
  6. "digitalProtocol":0
  7. }

post - 图1