示例#1
0
 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
示例#2
0
 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
示例#3
0
 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
示例#4
0
 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
示例#5
0
 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
示例#6
0
 def __init__(self, user_token):
     utils.log()
     super().__init__(user_token)
示例#7
0
 def getStatusCode(self):
     utils.log()
     i = self.tokenInfo.status_code
     utils.log(str(i))
     return i
示例#8
0
 def getIDMember(self):
     utils.log()
     i = self.tokenInfo.json()['idMember']
     utils.log(i)
     return i
示例#9
0
 def __init__(self, user_token, member_id):
     utils.log()
     super().__init__(user_token)
     self.member_id = member_id