def getHead(self, url, head, body): res = commonapi.replaceArgs(copy.deepcopy(self.head), url, head, body) return res
def getBody(self, url, head, body): res = commonapi.replaceArgs(copy.deepcopy(self.body), url, head, body) return json.dumps(res)
def getBody(self, url, head, body): res = commonapi.replaceArgs(copy.deepcopy(self.body), url, head, body) res["deviceKey"] = commonapi.getDeviceKey() return json.dumps(res)
def getBody(self, url, head, body): url["productSN"] = url["serialNumber"] res = commonapi.replaceArgs(copy.deepcopy(self.body), url, head, body) return json.dumps(res)