def avatarFail(self, api_url, message): self.vals = { 'auth_member_id' : self.auth_member_id, 'auth_token' : self.auth_token, 'action' : self.action, 'url' : self.url } manager = Manager(self.vals) manager.requestFail(api_url, "session/avatar", message)
def passwordFail(self, api_url, message): self.vals = { "auth_member_id": self.member_id, "auth_token": self.auth_token, "action": self.action, "username": self.username, "current_password": self.current_password, "password": self.new_password, "email": self.email } manager = Manager(self.vals) manager.requestFail(api_url, "session/password", message)
def accountFail(self, api_url, message): self.vals = { 'auth_member_id': self.memberId, 'auth_token': self.authToken, 'action': self.action, 'email': self.email, 'password': self.password, 'first_name': self.member_first_name, 'last_name': self.member_last_name, 'bday_d': self.bday_d, 'bday_m': self.bday_m, 'bday_y': self.bday_y, 'device_name': self.device_name, 'gender': self.member_gender } manager = Manager(self.vals) manager.requestFail(api_url, "session/account", message)
def bountyFail(self, api_url, message): self.vals = { 'auth_member_id': self.member_id, 'auth_token': self.auth_token, 'action': self.action, 'isbn': self.isbn } manager = Manager(self.vals) return manager.requestFail(api_url, "ecomm/bounty", message)
def loginFail(self, api_url, message): manager = Manager(self.vals) manager.requestFail(api_url, "session/login", message)
def detailsFail(self, api_url, message): manager = Manager(self.vals) manager.requestFail(api_url, "metadata/details", message)