예제 #1
0
 def getHead(self, url, head, body):
     res = commonapi.replaceArgs(copy.deepcopy(self.head), url, head, body)
     return res
예제 #2
0
 def getBody(self, url, head, body):
     res = commonapi.replaceArgs(copy.deepcopy(self.body), url, head, body)
     return json.dumps(res)
예제 #3
0
 def getBody(self, url, head, body):
     res = commonapi.replaceArgs(copy.deepcopy(self.body), url, head, body)
     res["deviceKey"] = commonapi.getDeviceKey()
     return json.dumps(res)
예제 #4
0
 def getBody(self, url, head, body):
     url["productSN"] = url["serialNumber"]
     res = commonapi.replaceArgs(copy.deepcopy(self.body), url, head, body)
     return json.dumps(res)