def putBoardId(self, board_id, query_params): #https://developers.trello.com/reference#idnext utils.log() update_board_url = self.baseURL + '/boards/' + board_id + self.tokenKey utils.log(update_board_url) r = requests.put(update_board_url, params=query_params) utils.log(r.text) return r
def requestTokenInfo(self): #https://developers.trello.com/reference#tokens utils.log() token_url = self.baseURL + '/tokens/' + self.user_token + self.tokenKey utils.log(token_url) r = requests.get(token_url) utils.log(r.text) return r
def requestBoard(self, board_id, query_params): #https://developers.trello.com/reference#boardsboardid-1 utils.log() boards_url = self.baseURL + '/boards/' + board_id + self.tokenKey utils.log(boards_url) r = requests.get(boards_url, params=query_params) utils.log(r.text) return r
def requestMembersBoards(self, query_params): #https://developers.trello.com/reference#membersidboards utils.log() members_boards_url = self.baseURL + '/members/' + self.member_id + self.tokenKey utils.log(members_boards_url) r = requests.get(members_boards_url, params=query_params) utils.log(r.text) return r
def requestMemberField(self, field): #https://developers.trello.com/reference#membersidfield utils.log() members_field_url = self.baseURL + '/members/' + self.member_id + '/' + field + self.tokenKey utils.log(members_field_url) r = requests.get(members_field_url) utils.log(r.text) return r
def __init__(self, user_token): utils.log() super().__init__(user_token)
def getStatusCode(self): utils.log() i = self.tokenInfo.status_code utils.log(str(i)) return i
def getIDMember(self): utils.log() i = self.tokenInfo.json()['idMember'] utils.log(i) return i
def __init__(self, user_token, member_id): utils.log() super().__init__(user_token) self.member_id = member_id