def get_bonds(self): reply = self.get("/bonds") return [ bond.to_core(row, version=reply.headers.get('Netman-Version')) for row in reply.json() ]
def get_bonds(self): reply = self.get("/bonds") return [bond.to_core(row, version=reply.headers.get("Netman-Version")) for row in reply.json()]
def get_bond(self, number): reply = self.get('/bonds/{}'.format(number)) return bond.to_core(reply.json(), version=reply.headers.get('Netman-Version'))
def get_bond(self, number): reply = self.get("/bonds/{}".format(number)) return bond.to_core(reply.json(), version=reply.headers.get("Netman-Version"))