def get_matches(self, event_key): """Retreives match json data from API. Insert description here. Args: event_key: string containing key of event. Example: 2015papi Returns: None Raises: None """ from TBApython.match import Match self.matches.clear() get_matches_url = (API_URL + 'team/' + self.key + '/event/' + event_key + '/matches') get_matches_raw_data = get_data(get_matches_url) for match in get_matches_raw_data: this_match = Match() this_match.match_from_raw_data(match) self.matches.append(this_match)
def get_matches(self): """Retreives match json data from API. Insert description here. Args: None Returns: None Raises: None """ from TBApython.match import Match self.matches.clear() get_matches_url = API_URL + 'event/' + self.key + '/matches' get_matches_raw_data = get_data(get_matches_url) for match in get_matches_raw_data: this_match = Match() this_match.match_from_raw_data(match) self.matches.append(this_match)