ftc_api_v3_client 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +283 -0
- data/Rakefile +10 -0
- data/config.json +8 -0
- data/docs/ApiV3AdvancementFrom.md +22 -0
- data/docs/ApiV3AdvancementFromSlot.md +24 -0
- data/docs/ApiV3AdvancementStatus.md +15 -0
- data/docs/ApiV3AllianceColor.md +15 -0
- data/docs/ApiV3AllianceDescription.md +82 -0
- data/docs/ApiV3AllianceMatch.md +44 -0
- data/docs/ApiV3AllianceMatchDetails.md +46 -0
- data/docs/ApiV3AllianceMatchParticipants.md +79 -0
- data/docs/ApiV3AllianceMatchResults.md +22 -0
- data/docs/ApiV3AllianceMatchResultsDetails.md +20 -0
- data/docs/ApiV3AlliancePlayoffMatchParticipants.md +22 -0
- data/docs/ApiV3AllianceSelection.md +20 -0
- data/docs/ApiV3AllianceSelections.md +18 -0
- data/docs/ApiV3AllianceSimpleMatchParticipants.md +22 -0
- data/docs/ApiV3Award.md +30 -0
- data/docs/ApiV3AwardRecipient.md +24 -0
- data/docs/ApiV3AwardType.md +15 -0
- data/docs/ApiV3Awards.md +18 -0
- data/docs/ApiV3BasePlayoffSeriesDescription.md +79 -0
- data/docs/ApiV3BasicAllianceDescription.md +20 -0
- data/docs/ApiV3CenterStageRemoteScoreDetail.md +22 -0
- data/docs/ApiV3CenterStageScoreDetail.md +22 -0
- data/docs/ApiV3CompetingType.md +15 -0
- data/docs/ApiV3Coordinates.md +20 -0
- data/docs/ApiV3CsAchievementsDetail.md +56 -0
- data/docs/ApiV3CsEndLocation.md +15 -0
- data/docs/ApiV3CsPointsDetail.md +48 -0
- data/docs/ApiV3CsRemoteAchievementsDetail.md +44 -0
- data/docs/ApiV3CsRemotePointsDetail.md +46 -0
- data/docs/ApiV3DecodeAchievementsDetail.md +42 -0
- data/docs/ApiV3DecodeArtifactType.md +15 -0
- data/docs/ApiV3DecodePointsDetail.md +46 -0
- data/docs/ApiV3DecodeScoreDetail.md +22 -0
- data/docs/ApiV3DecodeTeleopBaseLocation.md +15 -0
- data/docs/ApiV3Division.md +20 -0
- data/docs/ApiV3DoubleEliminationSeriesDescription.md +36 -0
- data/docs/ApiV3DoubleElimsBracketHalf.md +15 -0
- data/docs/ApiV3Event.md +62 -0
- data/docs/ApiV3EventFormat.md +15 -0
- data/docs/ApiV3EventLiveStream.md +22 -0
- data/docs/ApiV3EventParticipant.md +22 -0
- data/docs/ApiV3EventParticipants.md +18 -0
- data/docs/ApiV3EventType.md +15 -0
- data/docs/ApiV3Events.md +18 -0
- data/docs/ApiV3FFAchievementsDetail.md +64 -0
- data/docs/ApiV3FFAutoLocation.md +15 -0
- data/docs/ApiV3FFEndLocation.md +15 -0
- data/docs/ApiV3FFPointsDetail.md +54 -0
- data/docs/ApiV3FFRemoteAchievementsDetail.md +52 -0
- data/docs/ApiV3FFRemotePointsDetail.md +48 -0
- data/docs/ApiV3FreightFrenzyRemoteScoreDetail.md +22 -0
- data/docs/ApiV3FreightFrenzyScoreDetail.md +22 -0
- data/docs/ApiV3IntoTheDeepScoreDetail.md +22 -0
- data/docs/ApiV3ItdAchievementsDetail.md +48 -0
- data/docs/ApiV3ItdAutoLocation.md +15 -0
- data/docs/ApiV3ItdPointsDetail.md +42 -0
- data/docs/ApiV3ItdTeleopLocation.md +15 -0
- data/docs/ApiV3JunctionElement.md +15 -0
- data/docs/ApiV3League.md +26 -0
- data/docs/ApiV3LeagueDetails.md +28 -0
- data/docs/ApiV3LeagueMembershipDetails.md +20 -0
- data/docs/ApiV3Leagues.md +18 -0
- data/docs/ApiV3Match.md +79 -0
- data/docs/ApiV3MatchAlliance.md +18 -0
- data/docs/ApiV3MatchDetails.md +79 -0
- data/docs/ApiV3MatchTeam.md +24 -0
- data/docs/ApiV3Matches.md +18 -0
- data/docs/ApiV3PitMap.md +30 -0
- data/docs/ApiV3PitMapCellType.md +15 -0
- data/docs/ApiV3PitMapElement.md +40 -0
- data/docs/ApiV3PitMapLabelOrientation.md +15 -0
- data/docs/ApiV3PlayoffAlliance.md +24 -0
- data/docs/ApiV3PlayoffAlliances.md +18 -0
- data/docs/ApiV3PlayoffMatchAlliance.md +20 -0
- data/docs/ApiV3PlayoffRanking.md +32 -0
- data/docs/ApiV3PlayoffRankings.md +18 -0
- data/docs/ApiV3PlayoffSeriesDescription.md +32 -0
- data/docs/ApiV3PlayoffStructure.md +22 -0
- data/docs/ApiV3PlayoffType.md +15 -0
- data/docs/ApiV3PowerPlayAchievementsDetail.md +52 -0
- data/docs/ApiV3PowerPlayAutoLocation.md +15 -0
- data/docs/ApiV3PowerPlayPointsDetail.md +46 -0
- data/docs/ApiV3PowerPlayRemoteAchievementsDetail.md +48 -0
- data/docs/ApiV3PowerPlayRemotePointsDetail.md +44 -0
- data/docs/ApiV3PowerPlayRemoteScoreDetail.md +22 -0
- data/docs/ApiV3PowerPlayScoreDetail.md +22 -0
- data/docs/ApiV3Ranking.md +32 -0
- data/docs/ApiV3Rankings.md +18 -0
- data/docs/ApiV3Region.md +20 -0
- data/docs/ApiV3Regions.md +18 -0
- data/docs/ApiV3RemoteJunctionElement.md +15 -0
- data/docs/ApiV3RemoteScoreDetail.md +85 -0
- data/docs/ApiV3RoundRobinAllianceDescription.md +20 -0
- data/docs/ApiV3ScoreDetail.md +94 -0
- data/docs/ApiV3Season.md +24 -0
- data/docs/ApiV3Seasons.md +20 -0
- data/docs/ApiV3SelectionOperation.md +15 -0
- data/docs/ApiV3SeriesAllianceDescription.md +22 -0
- data/docs/ApiV3SeriesAllianceState.md +15 -0
- data/docs/ApiV3SimpleEvent.md +48 -0
- data/docs/ApiV3SimpleTeam.md +22 -0
- data/docs/ApiV3SingleAwardRecipient.md +30 -0
- data/docs/ApiV3SingleTeamMatch.md +44 -0
- data/docs/ApiV3SingleTeamMatchDetails.md +46 -0
- data/docs/ApiV3SingleTeamMatchParticipants.md +18 -0
- data/docs/ApiV3SingleTeamMatchResults.md +18 -0
- data/docs/ApiV3SingleTeamMatchResultsDetails.md +18 -0
- data/docs/ApiV3SkystoneAchievementsDetail.md +54 -0
- data/docs/ApiV3SkystonePointsDetail.md +46 -0
- data/docs/ApiV3SkystoneScoreDetail.md +22 -0
- data/docs/ApiV3Stone.md +15 -0
- data/docs/ApiV3Team.md +38 -0
- data/docs/ApiV3TeamAvatar.md +20 -0
- data/docs/ApiV3TeamAvatars.md +18 -0
- data/docs/ApiV3TeamDetails.md +24 -0
- data/docs/ApiV3TeamEventParticipation.md +20 -0
- data/docs/ApiV3TeamEventParticipationDetails.md +26 -0
- data/docs/ApiV3TeamHistory.md +36 -0
- data/docs/ApiV3TeamSeasonHistory.md +20 -0
- data/docs/ApiV3Teams.md +18 -0
- data/docs/ApiV3TournamentLevel.md +15 -0
- data/docs/ApiV3UgAchievementsDetail.md +60 -0
- data/docs/ApiV3UgPointsDetail.md +44 -0
- data/docs/ApiV3UgRemoteAchievementsDetail.md +58 -0
- data/docs/ApiV3UgRemotePointsDetail.md +44 -0
- data/docs/ApiV3UgWobbleLocation.md +15 -0
- data/docs/ApiV3UltimateGoalRemoteScoreDetail.md +22 -0
- data/docs/ApiV3UltimateGoalScoreDetail.md +22 -0
- data/docs/EventsApi.md +977 -0
- data/docs/LeaguesApi.md +385 -0
- data/docs/RegionsApi.md +301 -0
- data/docs/SeasonsApi.md +148 -0
- data/docs/TeamsApi.md +371 -0
- data/ftc_api_v3_client.gemspec +39 -0
- data/git_push.sh +57 -0
- data/lib/ftc_api_v3_client/api/events_api.rb +934 -0
- data/lib/ftc_api_v3_client/api/leagues_api.rb +391 -0
- data/lib/ftc_api_v3_client/api/regions_api.rb +292 -0
- data/lib/ftc_api_v3_client/api/seasons_api.rb +142 -0
- data/lib/ftc_api_v3_client/api/teams_api.rb +349 -0
- data/lib/ftc_api_v3_client/api_client.rb +397 -0
- data/lib/ftc_api_v3_client/api_error.rb +58 -0
- data/lib/ftc_api_v3_client/api_model_base.rb +88 -0
- data/lib/ftc_api_v3_client/configuration.rb +308 -0
- data/lib/ftc_api_v3_client/models/api_v3_advancement_from.rb +202 -0
- data/lib/ftc_api_v3_client/models/api_v3_advancement_from_slot.rb +234 -0
- data/lib/ftc_api_v3_client/models/api_v3_advancement_status.rb +44 -0
- data/lib/ftc_api_v3_client/models/api_v3_alliance_color.rb +40 -0
- data/lib/ftc_api_v3_client/models/api_v3_alliance_description.rb +57 -0
- data/lib/ftc_api_v3_client/models/api_v3_alliance_match.rb +427 -0
- data/lib/ftc_api_v3_client/models/api_v3_alliance_match_details.rb +436 -0
- data/lib/ftc_api_v3_client/models/api_v3_alliance_match_participants.rb +55 -0
- data/lib/ftc_api_v3_client/models/api_v3_alliance_match_results.rb +221 -0
- data/lib/ftc_api_v3_client/models/api_v3_alliance_match_results_details.rb +190 -0
- data/lib/ftc_api_v3_client/models/api_v3_alliance_playoff_match_participants.rb +217 -0
- data/lib/ftc_api_v3_client/models/api_v3_alliance_selection.rb +212 -0
- data/lib/ftc_api_v3_client/models/api_v3_alliance_selections.rb +166 -0
- data/lib/ftc_api_v3_client/models/api_v3_alliance_simple_match_participants.rb +217 -0
- data/lib/ftc_api_v3_client/models/api_v3_award.rb +311 -0
- data/lib/ftc_api_v3_client/models/api_v3_award_recipient.rb +177 -0
- data/lib/ftc_api_v3_client/models/api_v3_award_type.rb +59 -0
- data/lib/ftc_api_v3_client/models/api_v3_awards.rb +166 -0
- data/lib/ftc_api_v3_client/models/api_v3_base_playoff_series_description.rb +55 -0
- data/lib/ftc_api_v3_client/models/api_v3_basic_alliance_description.rb +191 -0
- data/lib/ftc_api_v3_client/models/api_v3_center_stage_remote_score_detail.rb +217 -0
- data/lib/ftc_api_v3_client/models/api_v3_center_stage_score_detail.rb +217 -0
- data/lib/ftc_api_v3_client/models/api_v3_competing_type.rb +40 -0
- data/lib/ftc_api_v3_client/models/api_v3_coordinates.rb +191 -0
- data/lib/ftc_api_v3_client/models/api_v3_cs_achievements_detail.rb +680 -0
- data/lib/ftc_api_v3_client/models/api_v3_cs_end_location.rb +41 -0
- data/lib/ftc_api_v3_client/models/api_v3_cs_points_detail.rb +555 -0
- data/lib/ftc_api_v3_client/models/api_v3_cs_remote_achievements_detail.rb +524 -0
- data/lib/ftc_api_v3_client/models/api_v3_cs_remote_points_detail.rb +528 -0
- data/lib/ftc_api_v3_client/models/api_v3_decode_achievements_detail.rb +502 -0
- data/lib/ftc_api_v3_client/models/api_v3_decode_artifact_type.rb +41 -0
- data/lib/ftc_api_v3_client/models/api_v3_decode_points_detail.rb +529 -0
- data/lib/ftc_api_v3_client/models/api_v3_decode_score_detail.rb +217 -0
- data/lib/ftc_api_v3_client/models/api_v3_decode_teleop_base_location.rb +41 -0
- data/lib/ftc_api_v3_client/models/api_v3_division.rb +190 -0
- data/lib/ftc_api_v3_client/models/api_v3_double_elimination_series_description.rb +405 -0
- data/lib/ftc_api_v3_client/models/api_v3_double_elims_bracket_half.rb +40 -0
- data/lib/ftc_api_v3_client/models/api_v3_event.rb +559 -0
- data/lib/ftc_api_v3_client/models/api_v3_event_format.rb +41 -0
- data/lib/ftc_api_v3_client/models/api_v3_event_live_stream.rb +182 -0
- data/lib/ftc_api_v3_client/models/api_v3_event_participant.rb +221 -0
- data/lib/ftc_api_v3_client/models/api_v3_event_participants.rb +166 -0
- data/lib/ftc_api_v3_client/models/api_v3_event_type.rb +50 -0
- data/lib/ftc_api_v3_client/models/api_v3_events.rb +166 -0
- data/lib/ftc_api_v3_client/models/api_v3_ff_achievements_detail.rb +787 -0
- data/lib/ftc_api_v3_client/models/api_v3_ff_auto_location.rb +43 -0
- data/lib/ftc_api_v3_client/models/api_v3_ff_end_location.rb +41 -0
- data/lib/ftc_api_v3_client/models/api_v3_ff_points_detail.rb +633 -0
- data/lib/ftc_api_v3_client/models/api_v3_ff_remote_achievements_detail.rb +629 -0
- data/lib/ftc_api_v3_client/models/api_v3_ff_remote_points_detail.rb +554 -0
- data/lib/ftc_api_v3_client/models/api_v3_freight_frenzy_remote_score_detail.rb +217 -0
- data/lib/ftc_api_v3_client/models/api_v3_freight_frenzy_score_detail.rb +217 -0
- data/lib/ftc_api_v3_client/models/api_v3_into_the_deep_score_detail.rb +217 -0
- data/lib/ftc_api_v3_client/models/api_v3_itd_achievements_detail.rb +576 -0
- data/lib/ftc_api_v3_client/models/api_v3_itd_auto_location.rb +41 -0
- data/lib/ftc_api_v3_client/models/api_v3_itd_points_detail.rb +477 -0
- data/lib/ftc_api_v3_client/models/api_v3_itd_teleop_location.rb +43 -0
- data/lib/ftc_api_v3_client/models/api_v3_junction_element.rb +44 -0
- data/lib/ftc_api_v3_client/models/api_v3_league.rb +217 -0
- data/lib/ftc_api_v3_client/models/api_v3_league_details.rb +245 -0
- data/lib/ftc_api_v3_client/models/api_v3_league_membership_details.rb +190 -0
- data/lib/ftc_api_v3_client/models/api_v3_leagues.rb +166 -0
- data/lib/ftc_api_v3_client/models/api_v3_match.rb +55 -0
- data/lib/ftc_api_v3_client/models/api_v3_match_alliance.rb +166 -0
- data/lib/ftc_api_v3_client/models/api_v3_match_details.rb +55 -0
- data/lib/ftc_api_v3_client/models/api_v3_match_team.rb +209 -0
- data/lib/ftc_api_v3_client/models/api_v3_matches.rb +166 -0
- data/lib/ftc_api_v3_client/models/api_v3_pit_map.rb +322 -0
- data/lib/ftc_api_v3_client/models/api_v3_pit_map_cell_type.rb +45 -0
- data/lib/ftc_api_v3_client/models/api_v3_pit_map_element.rb +336 -0
- data/lib/ftc_api_v3_client/models/api_v3_pit_map_label_orientation.rb +40 -0
- data/lib/ftc_api_v3_client/models/api_v3_playoff_alliance.rb +212 -0
- data/lib/ftc_api_v3_client/models/api_v3_playoff_alliances.rb +166 -0
- data/lib/ftc_api_v3_client/models/api_v3_playoff_match_alliance.rb +192 -0
- data/lib/ftc_api_v3_client/models/api_v3_playoff_ranking.rb +348 -0
- data/lib/ftc_api_v3_client/models/api_v3_playoff_rankings.rb +166 -0
- data/lib/ftc_api_v3_client/models/api_v3_playoff_series_description.rb +347 -0
- data/lib/ftc_api_v3_client/models/api_v3_playoff_structure.rb +241 -0
- data/lib/ftc_api_v3_client/models/api_v3_playoff_type.rb +42 -0
- data/lib/ftc_api_v3_client/models/api_v3_power_play_achievements_detail.rb +576 -0
- data/lib/ftc_api_v3_client/models/api_v3_power_play_auto_location.rb +41 -0
- data/lib/ftc_api_v3_client/models/api_v3_power_play_points_detail.rb +529 -0
- data/lib/ftc_api_v3_client/models/api_v3_power_play_remote_achievements_detail.rb +538 -0
- data/lib/ftc_api_v3_client/models/api_v3_power_play_remote_points_detail.rb +502 -0
- data/lib/ftc_api_v3_client/models/api_v3_power_play_remote_score_detail.rb +217 -0
- data/lib/ftc_api_v3_client/models/api_v3_power_play_score_detail.rb +217 -0
- data/lib/ftc_api_v3_client/models/api_v3_ranking.rb +348 -0
- data/lib/ftc_api_v3_client/models/api_v3_rankings.rb +166 -0
- data/lib/ftc_api_v3_client/models/api_v3_region.rb +190 -0
- data/lib/ftc_api_v3_client/models/api_v3_regions.rb +166 -0
- data/lib/ftc_api_v3_client/models/api_v3_remote_junction_element.rb +40 -0
- data/lib/ftc_api_v3_client/models/api_v3_remote_score_detail.rb +59 -0
- data/lib/ftc_api_v3_client/models/api_v3_round_robin_alliance_description.rb +191 -0
- data/lib/ftc_api_v3_client/models/api_v3_score_detail.rb +65 -0
- data/lib/ftc_api_v3_client/models/api_v3_season.rb +242 -0
- data/lib/ftc_api_v3_client/models/api_v3_seasons.rb +192 -0
- data/lib/ftc_api_v3_client/models/api_v3_selection_operation.rb +43 -0
- data/lib/ftc_api_v3_client/models/api_v3_series_alliance_description.rb +239 -0
- data/lib/ftc_api_v3_client/models/api_v3_series_alliance_state.rb +40 -0
- data/lib/ftc_api_v3_client/models/api_v3_simple_event.rb +458 -0
- data/lib/ftc_api_v3_client/models/api_v3_simple_team.rb +217 -0
- data/lib/ftc_api_v3_client/models/api_v3_single_award_recipient.rb +293 -0
- data/lib/ftc_api_v3_client/models/api_v3_single_team_match.rb +427 -0
- data/lib/ftc_api_v3_client/models/api_v3_single_team_match_details.rb +436 -0
- data/lib/ftc_api_v3_client/models/api_v3_single_team_match_participants.rb +164 -0
- data/lib/ftc_api_v3_client/models/api_v3_single_team_match_results.rb +164 -0
- data/lib/ftc_api_v3_client/models/api_v3_single_team_match_results_details.rb +164 -0
- data/lib/ftc_api_v3_client/models/api_v3_skystone_achievements_detail.rb +634 -0
- data/lib/ftc_api_v3_client/models/api_v3_skystone_points_detail.rb +529 -0
- data/lib/ftc_api_v3_client/models/api_v3_skystone_score_detail.rb +217 -0
- data/lib/ftc_api_v3_client/models/api_v3_stone.rb +41 -0
- data/lib/ftc_api_v3_client/models/api_v3_team.rb +324 -0
- data/lib/ftc_api_v3_client/models/api_v3_team_avatar.rb +190 -0
- data/lib/ftc_api_v3_client/models/api_v3_team_avatars.rb +166 -0
- data/lib/ftc_api_v3_client/models/api_v3_team_details.rb +247 -0
- data/lib/ftc_api_v3_client/models/api_v3_team_event_participation.rb +192 -0
- data/lib/ftc_api_v3_client/models/api_v3_team_event_participation_details.rb +238 -0
- data/lib/ftc_api_v3_client/models/api_v3_team_history.rb +334 -0
- data/lib/ftc_api_v3_client/models/api_v3_team_season_history.rb +192 -0
- data/lib/ftc_api_v3_client/models/api_v3_teams.rb +166 -0
- data/lib/ftc_api_v3_client/models/api_v3_tournament_level.rb +43 -0
- data/lib/ftc_api_v3_client/models/api_v3_ug_achievements_detail.rb +732 -0
- data/lib/ftc_api_v3_client/models/api_v3_ug_points_detail.rb +503 -0
- data/lib/ftc_api_v3_client/models/api_v3_ug_remote_achievements_detail.rb +706 -0
- data/lib/ftc_api_v3_client/models/api_v3_ug_remote_points_detail.rb +503 -0
- data/lib/ftc_api_v3_client/models/api_v3_ug_wobble_location.rb +41 -0
- data/lib/ftc_api_v3_client/models/api_v3_ultimate_goal_remote_score_detail.rb +217 -0
- data/lib/ftc_api_v3_client/models/api_v3_ultimate_goal_score_detail.rb +217 -0
- data/lib/ftc_api_v3_client/version.rb +15 -0
- data/lib/ftc_api_v3_client.rb +173 -0
- data/spec/api/events_api_spec.rb +207 -0
- data/spec/api/leagues_api_spec.rb +104 -0
- data/spec/api/regions_api_spec.rb +86 -0
- data/spec/api/seasons_api_spec.rb +58 -0
- data/spec/api/teams_api_spec.rb +97 -0
- data/spec/models/api_v3_advancement_from_slot_spec.rb +54 -0
- data/spec/models/api_v3_advancement_from_spec.rb +48 -0
- data/spec/models/api_v3_advancement_status_spec.rb +30 -0
- data/spec/models/api_v3_alliance_color_spec.rb +30 -0
- data/spec/models/api_v3_alliance_description_spec.rb +44 -0
- data/spec/models/api_v3_alliance_match_details_spec.rb +120 -0
- data/spec/models/api_v3_alliance_match_participants_spec.rb +44 -0
- data/spec/models/api_v3_alliance_match_results_details_spec.rb +42 -0
- data/spec/models/api_v3_alliance_match_results_spec.rb +48 -0
- data/spec/models/api_v3_alliance_match_spec.rb +114 -0
- data/spec/models/api_v3_alliance_playoff_match_participants_spec.rb +48 -0
- data/spec/models/api_v3_alliance_selection_spec.rb +42 -0
- data/spec/models/api_v3_alliance_selections_spec.rb +36 -0
- data/spec/models/api_v3_alliance_simple_match_participants_spec.rb +48 -0
- data/spec/models/api_v3_award_recipient_spec.rb +54 -0
- data/spec/models/api_v3_award_spec.rb +72 -0
- data/spec/models/api_v3_award_type_spec.rb +30 -0
- data/spec/models/api_v3_awards_spec.rb +36 -0
- data/spec/models/api_v3_base_playoff_series_description_spec.rb +44 -0
- data/spec/models/api_v3_basic_alliance_description_spec.rb +42 -0
- data/spec/models/api_v3_center_stage_remote_score_detail_spec.rb +48 -0
- data/spec/models/api_v3_center_stage_score_detail_spec.rb +48 -0
- data/spec/models/api_v3_competing_type_spec.rb +30 -0
- data/spec/models/api_v3_coordinates_spec.rb +42 -0
- data/spec/models/api_v3_cs_achievements_detail_spec.rb +150 -0
- data/spec/models/api_v3_cs_end_location_spec.rb +30 -0
- data/spec/models/api_v3_cs_points_detail_spec.rb +126 -0
- data/spec/models/api_v3_cs_remote_achievements_detail_spec.rb +114 -0
- data/spec/models/api_v3_cs_remote_points_detail_spec.rb +120 -0
- data/spec/models/api_v3_decode_achievements_detail_spec.rb +108 -0
- data/spec/models/api_v3_decode_artifact_type_spec.rb +30 -0
- data/spec/models/api_v3_decode_points_detail_spec.rb +120 -0
- data/spec/models/api_v3_decode_score_detail_spec.rb +48 -0
- data/spec/models/api_v3_decode_teleop_base_location_spec.rb +30 -0
- data/spec/models/api_v3_division_spec.rb +42 -0
- data/spec/models/api_v3_double_elimination_series_description_spec.rb +90 -0
- data/spec/models/api_v3_double_elims_bracket_half_spec.rb +30 -0
- data/spec/models/api_v3_event_format_spec.rb +30 -0
- data/spec/models/api_v3_event_live_stream_spec.rb +48 -0
- data/spec/models/api_v3_event_participant_spec.rb +48 -0
- data/spec/models/api_v3_event_participants_spec.rb +36 -0
- data/spec/models/api_v3_event_spec.rb +168 -0
- data/spec/models/api_v3_event_type_spec.rb +30 -0
- data/spec/models/api_v3_events_spec.rb +36 -0
- data/spec/models/api_v3_ff_achievements_detail_spec.rb +174 -0
- data/spec/models/api_v3_ff_auto_location_spec.rb +30 -0
- data/spec/models/api_v3_ff_end_location_spec.rb +30 -0
- data/spec/models/api_v3_ff_points_detail_spec.rb +144 -0
- data/spec/models/api_v3_ff_remote_achievements_detail_spec.rb +138 -0
- data/spec/models/api_v3_ff_remote_points_detail_spec.rb +126 -0
- data/spec/models/api_v3_freight_frenzy_remote_score_detail_spec.rb +48 -0
- data/spec/models/api_v3_freight_frenzy_score_detail_spec.rb +48 -0
- data/spec/models/api_v3_into_the_deep_score_detail_spec.rb +48 -0
- data/spec/models/api_v3_itd_achievements_detail_spec.rb +126 -0
- data/spec/models/api_v3_itd_auto_location_spec.rb +30 -0
- data/spec/models/api_v3_itd_points_detail_spec.rb +108 -0
- data/spec/models/api_v3_itd_teleop_location_spec.rb +30 -0
- data/spec/models/api_v3_junction_element_spec.rb +30 -0
- data/spec/models/api_v3_league_details_spec.rb +66 -0
- data/spec/models/api_v3_league_membership_details_spec.rb +42 -0
- data/spec/models/api_v3_league_spec.rb +60 -0
- data/spec/models/api_v3_leagues_spec.rb +36 -0
- data/spec/models/api_v3_match_alliance_spec.rb +36 -0
- data/spec/models/api_v3_match_details_spec.rb +44 -0
- data/spec/models/api_v3_match_spec.rb +44 -0
- data/spec/models/api_v3_match_team_spec.rb +54 -0
- data/spec/models/api_v3_matches_spec.rb +36 -0
- data/spec/models/api_v3_pit_map_cell_type_spec.rb +30 -0
- data/spec/models/api_v3_pit_map_element_spec.rb +102 -0
- data/spec/models/api_v3_pit_map_label_orientation_spec.rb +30 -0
- data/spec/models/api_v3_pit_map_spec.rb +72 -0
- data/spec/models/api_v3_playoff_alliance_spec.rb +54 -0
- data/spec/models/api_v3_playoff_alliances_spec.rb +36 -0
- data/spec/models/api_v3_playoff_match_alliance_spec.rb +42 -0
- data/spec/models/api_v3_playoff_ranking_spec.rb +78 -0
- data/spec/models/api_v3_playoff_rankings_spec.rb +36 -0
- data/spec/models/api_v3_playoff_series_description_spec.rb +78 -0
- data/spec/models/api_v3_playoff_structure_spec.rb +48 -0
- data/spec/models/api_v3_playoff_type_spec.rb +30 -0
- data/spec/models/api_v3_power_play_achievements_detail_spec.rb +138 -0
- data/spec/models/api_v3_power_play_auto_location_spec.rb +30 -0
- data/spec/models/api_v3_power_play_points_detail_spec.rb +120 -0
- data/spec/models/api_v3_power_play_remote_achievements_detail_spec.rb +126 -0
- data/spec/models/api_v3_power_play_remote_points_detail_spec.rb +114 -0
- data/spec/models/api_v3_power_play_remote_score_detail_spec.rb +48 -0
- data/spec/models/api_v3_power_play_score_detail_spec.rb +48 -0
- data/spec/models/api_v3_ranking_spec.rb +78 -0
- data/spec/models/api_v3_rankings_spec.rb +36 -0
- data/spec/models/api_v3_region_spec.rb +42 -0
- data/spec/models/api_v3_regions_spec.rb +36 -0
- data/spec/models/api_v3_remote_junction_element_spec.rb +30 -0
- data/spec/models/api_v3_remote_score_detail_spec.rb +44 -0
- data/spec/models/api_v3_round_robin_alliance_description_spec.rb +42 -0
- data/spec/models/api_v3_score_detail_spec.rb +44 -0
- data/spec/models/api_v3_season_spec.rb +54 -0
- data/spec/models/api_v3_seasons_spec.rb +42 -0
- data/spec/models/api_v3_selection_operation_spec.rb +30 -0
- data/spec/models/api_v3_series_alliance_description_spec.rb +48 -0
- data/spec/models/api_v3_series_alliance_state_spec.rb +30 -0
- data/spec/models/api_v3_simple_event_spec.rb +126 -0
- data/spec/models/api_v3_simple_team_spec.rb +48 -0
- data/spec/models/api_v3_single_award_recipient_spec.rb +72 -0
- data/spec/models/api_v3_single_team_match_details_spec.rb +120 -0
- data/spec/models/api_v3_single_team_match_participants_spec.rb +36 -0
- data/spec/models/api_v3_single_team_match_results_details_spec.rb +36 -0
- data/spec/models/api_v3_single_team_match_results_spec.rb +36 -0
- data/spec/models/api_v3_single_team_match_spec.rb +114 -0
- data/spec/models/api_v3_skystone_achievements_detail_spec.rb +144 -0
- data/spec/models/api_v3_skystone_points_detail_spec.rb +120 -0
- data/spec/models/api_v3_skystone_score_detail_spec.rb +48 -0
- data/spec/models/api_v3_stone_spec.rb +30 -0
- data/spec/models/api_v3_team_avatar_spec.rb +42 -0
- data/spec/models/api_v3_team_avatars_spec.rb +36 -0
- data/spec/models/api_v3_team_details_spec.rb +54 -0
- data/spec/models/api_v3_team_event_participation_details_spec.rb +60 -0
- data/spec/models/api_v3_team_event_participation_spec.rb +42 -0
- data/spec/models/api_v3_team_history_spec.rb +90 -0
- data/spec/models/api_v3_team_season_history_spec.rb +42 -0
- data/spec/models/api_v3_team_spec.rb +96 -0
- data/spec/models/api_v3_teams_spec.rb +36 -0
- data/spec/models/api_v3_tournament_level_spec.rb +30 -0
- data/spec/models/api_v3_ug_achievements_detail_spec.rb +162 -0
- data/spec/models/api_v3_ug_points_detail_spec.rb +114 -0
- data/spec/models/api_v3_ug_remote_achievements_detail_spec.rb +156 -0
- data/spec/models/api_v3_ug_remote_points_detail_spec.rb +114 -0
- data/spec/models/api_v3_ug_wobble_location_spec.rb +30 -0
- data/spec/models/api_v3_ultimate_goal_remote_score_detail_spec.rb +48 -0
- data/spec/models/api_v3_ultimate_goal_score_detail_spec.rb +48 -0
- data/spec/spec_helper.rb +111 -0
- data/update.sh +1 -0
- metadata +630 -0
data/docs/EventsApi.md
ADDED
|
@@ -0,0 +1,977 @@
|
|
|
1
|
+
# FtcApiV3Client::EventsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://ftc-api.firstinspires.org*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**get_event**](EventsApi.md#get_event) | **GET** /api/v3/seasons/{cmpYear}/events/{eventCode} | Get event from season |
|
|
8
|
+
| [**get_event_advancement_from**](EventsApi.md#get_event_advancement_from) | **GET** /api/v3/seasons/{cmpYear}/events/{eventCode}/advancement/from | Get event advancement (from) |
|
|
9
|
+
| [**get_event_alliance_selections**](EventsApi.md#get_event_alliance_selections) | **GET** /api/v3/seasons/{cmpYear}/events/{eventCode}/alliances/selections | Get event alliance selections |
|
|
10
|
+
| [**get_event_alliances**](EventsApi.md#get_event_alliances) | **GET** /api/v3/seasons/{cmpYear}/events/{eventCode}/alliances | Get event alliances |
|
|
11
|
+
| [**get_event_awards**](EventsApi.md#get_event_awards) | **GET** /api/v3/seasons/{cmpYear}/events/{eventCode}/awards | Get event awards |
|
|
12
|
+
| [**get_event_match**](EventsApi.md#get_event_match) | **GET** /api/v3/seasons/{cmpYear}/events/{eventCode}/matches/{tournamentLevel}/{series}/{number} | Get match details |
|
|
13
|
+
| [**get_event_pit_map**](EventsApi.md#get_event_pit_map) | **GET** /api/v3/seasons/{cmpYear}/events/{eventCode}/pitMap | Get pit map |
|
|
14
|
+
| [**get_event_playoff_rankings**](EventsApi.md#get_event_playoff_rankings) | **GET** /api/v3/seasons/{cmpYear}/events/{eventCode}/playoffRankings | Get event playoff rankings |
|
|
15
|
+
| [**get_event_playoff_structure**](EventsApi.md#get_event_playoff_structure) | **GET** /api/v3/seasons/{cmpYear}/events/{eventCode}/playoffStructure | Get playoff structure |
|
|
16
|
+
| [**get_event_rankings**](EventsApi.md#get_event_rankings) | **GET** /api/v3/seasons/{cmpYear}/events/{eventCode}/rankings | Get event rankings |
|
|
17
|
+
| [**list_event_matches**](EventsApi.md#list_event_matches) | **GET** /api/v3/seasons/{cmpYear}/events/{eventCode}/matches | List event matches |
|
|
18
|
+
| [**list_event_teams**](EventsApi.md#list_event_teams) | **GET** /api/v3/seasons/{cmpYear}/events/{eventCode}/teams | List teams for an event |
|
|
19
|
+
| [**list_events**](EventsApi.md#list_events) | **GET** /api/v3/seasons/{cmpYear}/events | List events for a season |
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## get_event
|
|
23
|
+
|
|
24
|
+
> <ApiV3Event> get_event(cmp_year, event_code)
|
|
25
|
+
|
|
26
|
+
Get event from season
|
|
27
|
+
|
|
28
|
+
Get detailed information about a single event
|
|
29
|
+
|
|
30
|
+
### Examples
|
|
31
|
+
|
|
32
|
+
```ruby
|
|
33
|
+
require 'time'
|
|
34
|
+
require 'ftc_api_v3_client'
|
|
35
|
+
# setup authorization
|
|
36
|
+
FtcApiV3Client.configure do |config|
|
|
37
|
+
# Configure API key authorization: ApiKeyAuth
|
|
38
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
|
39
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
40
|
+
# config.api_key_prefix['api_key'] = 'Bearer'
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
api_instance = FtcApiV3Client::EventsApi.new
|
|
44
|
+
cmp_year = 'cmp_year_example' # String | The year of the FIRST Championship for the requested season
|
|
45
|
+
event_code = 'event_code_example' # String | The code (abbreviation) for the event
|
|
46
|
+
|
|
47
|
+
begin
|
|
48
|
+
# Get event from season
|
|
49
|
+
result = api_instance.get_event(cmp_year, event_code)
|
|
50
|
+
p result
|
|
51
|
+
rescue FtcApiV3Client::ApiError => e
|
|
52
|
+
puts "Error when calling EventsApi->get_event: #{e}"
|
|
53
|
+
end
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
#### Using the get_event_with_http_info variant
|
|
57
|
+
|
|
58
|
+
This returns an Array which contains the response data, status code and headers.
|
|
59
|
+
|
|
60
|
+
> <Array(<ApiV3Event>, Integer, Hash)> get_event_with_http_info(cmp_year, event_code)
|
|
61
|
+
|
|
62
|
+
```ruby
|
|
63
|
+
begin
|
|
64
|
+
# Get event from season
|
|
65
|
+
data, status_code, headers = api_instance.get_event_with_http_info(cmp_year, event_code)
|
|
66
|
+
p status_code # => 2xx
|
|
67
|
+
p headers # => { ... }
|
|
68
|
+
p data # => <ApiV3Event>
|
|
69
|
+
rescue FtcApiV3Client::ApiError => e
|
|
70
|
+
puts "Error when calling EventsApi->get_event_with_http_info: #{e}"
|
|
71
|
+
end
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### Parameters
|
|
75
|
+
|
|
76
|
+
| Name | Type | Description | Notes |
|
|
77
|
+
| ---- | ---- | ----------- | ----- |
|
|
78
|
+
| **cmp_year** | **String** | The year of the FIRST Championship for the requested season | |
|
|
79
|
+
| **event_code** | **String** | The code (abbreviation) for the event | |
|
|
80
|
+
|
|
81
|
+
### Return type
|
|
82
|
+
|
|
83
|
+
[**ApiV3Event**](ApiV3Event.md)
|
|
84
|
+
|
|
85
|
+
### Authorization
|
|
86
|
+
|
|
87
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
88
|
+
|
|
89
|
+
### HTTP request headers
|
|
90
|
+
|
|
91
|
+
- **Content-Type**: Not defined
|
|
92
|
+
- **Accept**: application/json
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
## get_event_advancement_from
|
|
96
|
+
|
|
97
|
+
> <ApiV3AdvancementFrom> get_event_advancement_from(cmp_year, event_code)
|
|
98
|
+
|
|
99
|
+
Get event advancement (from)
|
|
100
|
+
|
|
101
|
+
Gets advancement list for teams advancing from this event to the next level of competition
|
|
102
|
+
|
|
103
|
+
### Examples
|
|
104
|
+
|
|
105
|
+
```ruby
|
|
106
|
+
require 'time'
|
|
107
|
+
require 'ftc_api_v3_client'
|
|
108
|
+
# setup authorization
|
|
109
|
+
FtcApiV3Client.configure do |config|
|
|
110
|
+
# Configure API key authorization: ApiKeyAuth
|
|
111
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
|
112
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
113
|
+
# config.api_key_prefix['api_key'] = 'Bearer'
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
api_instance = FtcApiV3Client::EventsApi.new
|
|
117
|
+
cmp_year = 'cmp_year_example' # String | The year of the FIRST Championship for the requested season
|
|
118
|
+
event_code = 'event_code_example' # String | The code (abbreviation) for the event
|
|
119
|
+
|
|
120
|
+
begin
|
|
121
|
+
# Get event advancement (from)
|
|
122
|
+
result = api_instance.get_event_advancement_from(cmp_year, event_code)
|
|
123
|
+
p result
|
|
124
|
+
rescue FtcApiV3Client::ApiError => e
|
|
125
|
+
puts "Error when calling EventsApi->get_event_advancement_from: #{e}"
|
|
126
|
+
end
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
#### Using the get_event_advancement_from_with_http_info variant
|
|
130
|
+
|
|
131
|
+
This returns an Array which contains the response data, status code and headers.
|
|
132
|
+
|
|
133
|
+
> <Array(<ApiV3AdvancementFrom>, Integer, Hash)> get_event_advancement_from_with_http_info(cmp_year, event_code)
|
|
134
|
+
|
|
135
|
+
```ruby
|
|
136
|
+
begin
|
|
137
|
+
# Get event advancement (from)
|
|
138
|
+
data, status_code, headers = api_instance.get_event_advancement_from_with_http_info(cmp_year, event_code)
|
|
139
|
+
p status_code # => 2xx
|
|
140
|
+
p headers # => { ... }
|
|
141
|
+
p data # => <ApiV3AdvancementFrom>
|
|
142
|
+
rescue FtcApiV3Client::ApiError => e
|
|
143
|
+
puts "Error when calling EventsApi->get_event_advancement_from_with_http_info: #{e}"
|
|
144
|
+
end
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
### Parameters
|
|
148
|
+
|
|
149
|
+
| Name | Type | Description | Notes |
|
|
150
|
+
| ---- | ---- | ----------- | ----- |
|
|
151
|
+
| **cmp_year** | **String** | The year of the FIRST Championship for the requested season | |
|
|
152
|
+
| **event_code** | **String** | The code (abbreviation) for the event | |
|
|
153
|
+
|
|
154
|
+
### Return type
|
|
155
|
+
|
|
156
|
+
[**ApiV3AdvancementFrom**](ApiV3AdvancementFrom.md)
|
|
157
|
+
|
|
158
|
+
### Authorization
|
|
159
|
+
|
|
160
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
161
|
+
|
|
162
|
+
### HTTP request headers
|
|
163
|
+
|
|
164
|
+
- **Content-Type**: Not defined
|
|
165
|
+
- **Accept**: application/json
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
## get_event_alliance_selections
|
|
169
|
+
|
|
170
|
+
> <ApiV3AllianceSelections> get_event_alliance_selections(cmp_year, event_code)
|
|
171
|
+
|
|
172
|
+
Get event alliance selections
|
|
173
|
+
|
|
174
|
+
Gets alliance selection operations for the given event, including accepts and declines. These are presented in the order in which they occurred. Refer to the season's competition manual to confirm the order of alliance selections that year. If you are looking for the final alliances and are not interested in analyzing the selection process itself, we recommend using the GetEventAlliances endpoint instead.
|
|
175
|
+
|
|
176
|
+
### Examples
|
|
177
|
+
|
|
178
|
+
```ruby
|
|
179
|
+
require 'time'
|
|
180
|
+
require 'ftc_api_v3_client'
|
|
181
|
+
# setup authorization
|
|
182
|
+
FtcApiV3Client.configure do |config|
|
|
183
|
+
# Configure API key authorization: ApiKeyAuth
|
|
184
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
|
185
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
186
|
+
# config.api_key_prefix['api_key'] = 'Bearer'
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
api_instance = FtcApiV3Client::EventsApi.new
|
|
190
|
+
cmp_year = 'cmp_year_example' # String | The year of the FIRST Championship for the requested season
|
|
191
|
+
event_code = 'event_code_example' # String | The code (abbreviation) for the event
|
|
192
|
+
|
|
193
|
+
begin
|
|
194
|
+
# Get event alliance selections
|
|
195
|
+
result = api_instance.get_event_alliance_selections(cmp_year, event_code)
|
|
196
|
+
p result
|
|
197
|
+
rescue FtcApiV3Client::ApiError => e
|
|
198
|
+
puts "Error when calling EventsApi->get_event_alliance_selections: #{e}"
|
|
199
|
+
end
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
#### Using the get_event_alliance_selections_with_http_info variant
|
|
203
|
+
|
|
204
|
+
This returns an Array which contains the response data, status code and headers.
|
|
205
|
+
|
|
206
|
+
> <Array(<ApiV3AllianceSelections>, Integer, Hash)> get_event_alliance_selections_with_http_info(cmp_year, event_code)
|
|
207
|
+
|
|
208
|
+
```ruby
|
|
209
|
+
begin
|
|
210
|
+
# Get event alliance selections
|
|
211
|
+
data, status_code, headers = api_instance.get_event_alliance_selections_with_http_info(cmp_year, event_code)
|
|
212
|
+
p status_code # => 2xx
|
|
213
|
+
p headers # => { ... }
|
|
214
|
+
p data # => <ApiV3AllianceSelections>
|
|
215
|
+
rescue FtcApiV3Client::ApiError => e
|
|
216
|
+
puts "Error when calling EventsApi->get_event_alliance_selections_with_http_info: #{e}"
|
|
217
|
+
end
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
### Parameters
|
|
221
|
+
|
|
222
|
+
| Name | Type | Description | Notes |
|
|
223
|
+
| ---- | ---- | ----------- | ----- |
|
|
224
|
+
| **cmp_year** | **String** | The year of the FIRST Championship for the requested season | |
|
|
225
|
+
| **event_code** | **String** | The code (abbreviation) for the event | |
|
|
226
|
+
|
|
227
|
+
### Return type
|
|
228
|
+
|
|
229
|
+
[**ApiV3AllianceSelections**](ApiV3AllianceSelections.md)
|
|
230
|
+
|
|
231
|
+
### Authorization
|
|
232
|
+
|
|
233
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
234
|
+
|
|
235
|
+
### HTTP request headers
|
|
236
|
+
|
|
237
|
+
- **Content-Type**: Not defined
|
|
238
|
+
- **Accept**: application/json
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
## get_event_alliances
|
|
242
|
+
|
|
243
|
+
> <ApiV3PlayoffAlliances> get_event_alliances(cmp_year, event_code)
|
|
244
|
+
|
|
245
|
+
Get event alliances
|
|
246
|
+
|
|
247
|
+
Gets playoff alliances for the given event
|
|
248
|
+
|
|
249
|
+
### Examples
|
|
250
|
+
|
|
251
|
+
```ruby
|
|
252
|
+
require 'time'
|
|
253
|
+
require 'ftc_api_v3_client'
|
|
254
|
+
# setup authorization
|
|
255
|
+
FtcApiV3Client.configure do |config|
|
|
256
|
+
# Configure API key authorization: ApiKeyAuth
|
|
257
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
|
258
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
259
|
+
# config.api_key_prefix['api_key'] = 'Bearer'
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
api_instance = FtcApiV3Client::EventsApi.new
|
|
263
|
+
cmp_year = 'cmp_year_example' # String | The year of the FIRST Championship for the requested season
|
|
264
|
+
event_code = 'event_code_example' # String | The code (abbreviation) for the event
|
|
265
|
+
|
|
266
|
+
begin
|
|
267
|
+
# Get event alliances
|
|
268
|
+
result = api_instance.get_event_alliances(cmp_year, event_code)
|
|
269
|
+
p result
|
|
270
|
+
rescue FtcApiV3Client::ApiError => e
|
|
271
|
+
puts "Error when calling EventsApi->get_event_alliances: #{e}"
|
|
272
|
+
end
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
#### Using the get_event_alliances_with_http_info variant
|
|
276
|
+
|
|
277
|
+
This returns an Array which contains the response data, status code and headers.
|
|
278
|
+
|
|
279
|
+
> <Array(<ApiV3PlayoffAlliances>, Integer, Hash)> get_event_alliances_with_http_info(cmp_year, event_code)
|
|
280
|
+
|
|
281
|
+
```ruby
|
|
282
|
+
begin
|
|
283
|
+
# Get event alliances
|
|
284
|
+
data, status_code, headers = api_instance.get_event_alliances_with_http_info(cmp_year, event_code)
|
|
285
|
+
p status_code # => 2xx
|
|
286
|
+
p headers # => { ... }
|
|
287
|
+
p data # => <ApiV3PlayoffAlliances>
|
|
288
|
+
rescue FtcApiV3Client::ApiError => e
|
|
289
|
+
puts "Error when calling EventsApi->get_event_alliances_with_http_info: #{e}"
|
|
290
|
+
end
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
### Parameters
|
|
294
|
+
|
|
295
|
+
| Name | Type | Description | Notes |
|
|
296
|
+
| ---- | ---- | ----------- | ----- |
|
|
297
|
+
| **cmp_year** | **String** | The year of the FIRST Championship for the requested season | |
|
|
298
|
+
| **event_code** | **String** | The code (abbreviation) for the event | |
|
|
299
|
+
|
|
300
|
+
### Return type
|
|
301
|
+
|
|
302
|
+
[**ApiV3PlayoffAlliances**](ApiV3PlayoffAlliances.md)
|
|
303
|
+
|
|
304
|
+
### Authorization
|
|
305
|
+
|
|
306
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
307
|
+
|
|
308
|
+
### HTTP request headers
|
|
309
|
+
|
|
310
|
+
- **Content-Type**: Not defined
|
|
311
|
+
- **Accept**: application/json
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
## get_event_awards
|
|
315
|
+
|
|
316
|
+
> <ApiV3Awards> get_event_awards(cmp_year, event_code)
|
|
317
|
+
|
|
318
|
+
Get event awards
|
|
319
|
+
|
|
320
|
+
Gets award information and recipients for the given event.
|
|
321
|
+
|
|
322
|
+
### Examples
|
|
323
|
+
|
|
324
|
+
```ruby
|
|
325
|
+
require 'time'
|
|
326
|
+
require 'ftc_api_v3_client'
|
|
327
|
+
# setup authorization
|
|
328
|
+
FtcApiV3Client.configure do |config|
|
|
329
|
+
# Configure API key authorization: ApiKeyAuth
|
|
330
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
|
331
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
332
|
+
# config.api_key_prefix['api_key'] = 'Bearer'
|
|
333
|
+
end
|
|
334
|
+
|
|
335
|
+
api_instance = FtcApiV3Client::EventsApi.new
|
|
336
|
+
cmp_year = 'cmp_year_example' # String | The year of the FIRST Championship for the requested season
|
|
337
|
+
event_code = 'event_code_example' # String | The code (abbreviation) for the event
|
|
338
|
+
|
|
339
|
+
begin
|
|
340
|
+
# Get event awards
|
|
341
|
+
result = api_instance.get_event_awards(cmp_year, event_code)
|
|
342
|
+
p result
|
|
343
|
+
rescue FtcApiV3Client::ApiError => e
|
|
344
|
+
puts "Error when calling EventsApi->get_event_awards: #{e}"
|
|
345
|
+
end
|
|
346
|
+
```
|
|
347
|
+
|
|
348
|
+
#### Using the get_event_awards_with_http_info variant
|
|
349
|
+
|
|
350
|
+
This returns an Array which contains the response data, status code and headers.
|
|
351
|
+
|
|
352
|
+
> <Array(<ApiV3Awards>, Integer, Hash)> get_event_awards_with_http_info(cmp_year, event_code)
|
|
353
|
+
|
|
354
|
+
```ruby
|
|
355
|
+
begin
|
|
356
|
+
# Get event awards
|
|
357
|
+
data, status_code, headers = api_instance.get_event_awards_with_http_info(cmp_year, event_code)
|
|
358
|
+
p status_code # => 2xx
|
|
359
|
+
p headers # => { ... }
|
|
360
|
+
p data # => <ApiV3Awards>
|
|
361
|
+
rescue FtcApiV3Client::ApiError => e
|
|
362
|
+
puts "Error when calling EventsApi->get_event_awards_with_http_info: #{e}"
|
|
363
|
+
end
|
|
364
|
+
```
|
|
365
|
+
|
|
366
|
+
### Parameters
|
|
367
|
+
|
|
368
|
+
| Name | Type | Description | Notes |
|
|
369
|
+
| ---- | ---- | ----------- | ----- |
|
|
370
|
+
| **cmp_year** | **String** | The year of the FIRST Championship for the requested season | |
|
|
371
|
+
| **event_code** | **String** | The code (abbreviation) for the event | |
|
|
372
|
+
|
|
373
|
+
### Return type
|
|
374
|
+
|
|
375
|
+
[**ApiV3Awards**](ApiV3Awards.md)
|
|
376
|
+
|
|
377
|
+
### Authorization
|
|
378
|
+
|
|
379
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
380
|
+
|
|
381
|
+
### HTTP request headers
|
|
382
|
+
|
|
383
|
+
- **Content-Type**: Not defined
|
|
384
|
+
- **Accept**: application/json
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
## get_event_match
|
|
388
|
+
|
|
389
|
+
> <ApiV3MatchDetails> get_event_match(cmp_year, event_code, tournament_level, series, number)
|
|
390
|
+
|
|
391
|
+
Get match details
|
|
392
|
+
|
|
393
|
+
Gets details for a single match, including season-specific score details.
|
|
394
|
+
|
|
395
|
+
### Examples
|
|
396
|
+
|
|
397
|
+
```ruby
|
|
398
|
+
require 'time'
|
|
399
|
+
require 'ftc_api_v3_client'
|
|
400
|
+
# setup authorization
|
|
401
|
+
FtcApiV3Client.configure do |config|
|
|
402
|
+
# Configure API key authorization: ApiKeyAuth
|
|
403
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
|
404
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
405
|
+
# config.api_key_prefix['api_key'] = 'Bearer'
|
|
406
|
+
end
|
|
407
|
+
|
|
408
|
+
api_instance = FtcApiV3Client::EventsApi.new
|
|
409
|
+
cmp_year = 'cmp_year_example' # String | The year of the FIRST Championship for the requested season
|
|
410
|
+
event_code = 'event_code_example' # String | The code (abbreviation) for the event
|
|
411
|
+
tournament_level = FtcApiV3Client::ApiV3TournamentLevel::QUALIFICATION # ApiV3TournamentLevel | The tournament level of the match
|
|
412
|
+
series = 'series_example' # String | The series of the match (0 for non-playoff matches). For remote events, the team number for the match.
|
|
413
|
+
number = 56 # Integer | The match number
|
|
414
|
+
|
|
415
|
+
begin
|
|
416
|
+
# Get match details
|
|
417
|
+
result = api_instance.get_event_match(cmp_year, event_code, tournament_level, series, number)
|
|
418
|
+
p result
|
|
419
|
+
rescue FtcApiV3Client::ApiError => e
|
|
420
|
+
puts "Error when calling EventsApi->get_event_match: #{e}"
|
|
421
|
+
end
|
|
422
|
+
```
|
|
423
|
+
|
|
424
|
+
#### Using the get_event_match_with_http_info variant
|
|
425
|
+
|
|
426
|
+
This returns an Array which contains the response data, status code and headers.
|
|
427
|
+
|
|
428
|
+
> <Array(<ApiV3MatchDetails>, Integer, Hash)> get_event_match_with_http_info(cmp_year, event_code, tournament_level, series, number)
|
|
429
|
+
|
|
430
|
+
```ruby
|
|
431
|
+
begin
|
|
432
|
+
# Get match details
|
|
433
|
+
data, status_code, headers = api_instance.get_event_match_with_http_info(cmp_year, event_code, tournament_level, series, number)
|
|
434
|
+
p status_code # => 2xx
|
|
435
|
+
p headers # => { ... }
|
|
436
|
+
p data # => <ApiV3MatchDetails>
|
|
437
|
+
rescue FtcApiV3Client::ApiError => e
|
|
438
|
+
puts "Error when calling EventsApi->get_event_match_with_http_info: #{e}"
|
|
439
|
+
end
|
|
440
|
+
```
|
|
441
|
+
|
|
442
|
+
### Parameters
|
|
443
|
+
|
|
444
|
+
| Name | Type | Description | Notes |
|
|
445
|
+
| ---- | ---- | ----------- | ----- |
|
|
446
|
+
| **cmp_year** | **String** | The year of the FIRST Championship for the requested season | |
|
|
447
|
+
| **event_code** | **String** | The code (abbreviation) for the event | |
|
|
448
|
+
| **tournament_level** | [**ApiV3TournamentLevel**](.md) | The tournament level of the match | |
|
|
449
|
+
| **series** | **String** | The series of the match (0 for non-playoff matches). For remote events, the team number for the match. | |
|
|
450
|
+
| **number** | **Integer** | The match number | |
|
|
451
|
+
|
|
452
|
+
### Return type
|
|
453
|
+
|
|
454
|
+
[**ApiV3MatchDetails**](ApiV3MatchDetails.md)
|
|
455
|
+
|
|
456
|
+
### Authorization
|
|
457
|
+
|
|
458
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
459
|
+
|
|
460
|
+
### HTTP request headers
|
|
461
|
+
|
|
462
|
+
- **Content-Type**: Not defined
|
|
463
|
+
- **Accept**: application/json
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
## get_event_pit_map
|
|
467
|
+
|
|
468
|
+
> <ApiV3PitMap> get_event_pit_map(cmp_year, event_code)
|
|
469
|
+
|
|
470
|
+
Get pit map
|
|
471
|
+
|
|
472
|
+
Gets data representation of pit map
|
|
473
|
+
|
|
474
|
+
### Examples
|
|
475
|
+
|
|
476
|
+
```ruby
|
|
477
|
+
require 'time'
|
|
478
|
+
require 'ftc_api_v3_client'
|
|
479
|
+
# setup authorization
|
|
480
|
+
FtcApiV3Client.configure do |config|
|
|
481
|
+
# Configure API key authorization: ApiKeyAuth
|
|
482
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
|
483
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
484
|
+
# config.api_key_prefix['api_key'] = 'Bearer'
|
|
485
|
+
end
|
|
486
|
+
|
|
487
|
+
api_instance = FtcApiV3Client::EventsApi.new
|
|
488
|
+
cmp_year = 'cmp_year_example' # String | The year of the FIRST Championship for the requested season
|
|
489
|
+
event_code = 'event_code_example' # String | The code (abbreviation) for the event
|
|
490
|
+
|
|
491
|
+
begin
|
|
492
|
+
# Get pit map
|
|
493
|
+
result = api_instance.get_event_pit_map(cmp_year, event_code)
|
|
494
|
+
p result
|
|
495
|
+
rescue FtcApiV3Client::ApiError => e
|
|
496
|
+
puts "Error when calling EventsApi->get_event_pit_map: #{e}"
|
|
497
|
+
end
|
|
498
|
+
```
|
|
499
|
+
|
|
500
|
+
#### Using the get_event_pit_map_with_http_info variant
|
|
501
|
+
|
|
502
|
+
This returns an Array which contains the response data, status code and headers.
|
|
503
|
+
|
|
504
|
+
> <Array(<ApiV3PitMap>, Integer, Hash)> get_event_pit_map_with_http_info(cmp_year, event_code)
|
|
505
|
+
|
|
506
|
+
```ruby
|
|
507
|
+
begin
|
|
508
|
+
# Get pit map
|
|
509
|
+
data, status_code, headers = api_instance.get_event_pit_map_with_http_info(cmp_year, event_code)
|
|
510
|
+
p status_code # => 2xx
|
|
511
|
+
p headers # => { ... }
|
|
512
|
+
p data # => <ApiV3PitMap>
|
|
513
|
+
rescue FtcApiV3Client::ApiError => e
|
|
514
|
+
puts "Error when calling EventsApi->get_event_pit_map_with_http_info: #{e}"
|
|
515
|
+
end
|
|
516
|
+
```
|
|
517
|
+
|
|
518
|
+
### Parameters
|
|
519
|
+
|
|
520
|
+
| Name | Type | Description | Notes |
|
|
521
|
+
| ---- | ---- | ----------- | ----- |
|
|
522
|
+
| **cmp_year** | **String** | The year of the FIRST Championship for the requested season | |
|
|
523
|
+
| **event_code** | **String** | The code (abbreviation) for the event | |
|
|
524
|
+
|
|
525
|
+
### Return type
|
|
526
|
+
|
|
527
|
+
[**ApiV3PitMap**](ApiV3PitMap.md)
|
|
528
|
+
|
|
529
|
+
### Authorization
|
|
530
|
+
|
|
531
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
532
|
+
|
|
533
|
+
### HTTP request headers
|
|
534
|
+
|
|
535
|
+
- **Content-Type**: Not defined
|
|
536
|
+
- **Accept**: application/json
|
|
537
|
+
|
|
538
|
+
|
|
539
|
+
## get_event_playoff_rankings
|
|
540
|
+
|
|
541
|
+
> <ApiV3PlayoffRankings> get_event_playoff_rankings(cmp_year, event_code)
|
|
542
|
+
|
|
543
|
+
Get event playoff rankings
|
|
544
|
+
|
|
545
|
+
Gets playoff rankings for a given event. Each sort order field is season-specific: see the season's competition manual for definitions. Only applicable to events using round-robin playoffs (e.g. FIRST Championship da Vinci)
|
|
546
|
+
|
|
547
|
+
### Examples
|
|
548
|
+
|
|
549
|
+
```ruby
|
|
550
|
+
require 'time'
|
|
551
|
+
require 'ftc_api_v3_client'
|
|
552
|
+
# setup authorization
|
|
553
|
+
FtcApiV3Client.configure do |config|
|
|
554
|
+
# Configure API key authorization: ApiKeyAuth
|
|
555
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
|
556
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
557
|
+
# config.api_key_prefix['api_key'] = 'Bearer'
|
|
558
|
+
end
|
|
559
|
+
|
|
560
|
+
api_instance = FtcApiV3Client::EventsApi.new
|
|
561
|
+
cmp_year = 'cmp_year_example' # String | The year of the FIRST Championship for the requested season
|
|
562
|
+
event_code = 'event_code_example' # String | The code (abbreviation) for the event
|
|
563
|
+
|
|
564
|
+
begin
|
|
565
|
+
# Get event playoff rankings
|
|
566
|
+
result = api_instance.get_event_playoff_rankings(cmp_year, event_code)
|
|
567
|
+
p result
|
|
568
|
+
rescue FtcApiV3Client::ApiError => e
|
|
569
|
+
puts "Error when calling EventsApi->get_event_playoff_rankings: #{e}"
|
|
570
|
+
end
|
|
571
|
+
```
|
|
572
|
+
|
|
573
|
+
#### Using the get_event_playoff_rankings_with_http_info variant
|
|
574
|
+
|
|
575
|
+
This returns an Array which contains the response data, status code and headers.
|
|
576
|
+
|
|
577
|
+
> <Array(<ApiV3PlayoffRankings>, Integer, Hash)> get_event_playoff_rankings_with_http_info(cmp_year, event_code)
|
|
578
|
+
|
|
579
|
+
```ruby
|
|
580
|
+
begin
|
|
581
|
+
# Get event playoff rankings
|
|
582
|
+
data, status_code, headers = api_instance.get_event_playoff_rankings_with_http_info(cmp_year, event_code)
|
|
583
|
+
p status_code # => 2xx
|
|
584
|
+
p headers # => { ... }
|
|
585
|
+
p data # => <ApiV3PlayoffRankings>
|
|
586
|
+
rescue FtcApiV3Client::ApiError => e
|
|
587
|
+
puts "Error when calling EventsApi->get_event_playoff_rankings_with_http_info: #{e}"
|
|
588
|
+
end
|
|
589
|
+
```
|
|
590
|
+
|
|
591
|
+
### Parameters
|
|
592
|
+
|
|
593
|
+
| Name | Type | Description | Notes |
|
|
594
|
+
| ---- | ---- | ----------- | ----- |
|
|
595
|
+
| **cmp_year** | **String** | The year of the FIRST Championship for the requested season | |
|
|
596
|
+
| **event_code** | **String** | The code (abbreviation) for the event | |
|
|
597
|
+
|
|
598
|
+
### Return type
|
|
599
|
+
|
|
600
|
+
[**ApiV3PlayoffRankings**](ApiV3PlayoffRankings.md)
|
|
601
|
+
|
|
602
|
+
### Authorization
|
|
603
|
+
|
|
604
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
605
|
+
|
|
606
|
+
### HTTP request headers
|
|
607
|
+
|
|
608
|
+
- **Content-Type**: Not defined
|
|
609
|
+
- **Accept**: application/json
|
|
610
|
+
|
|
611
|
+
|
|
612
|
+
## get_event_playoff_structure
|
|
613
|
+
|
|
614
|
+
> <ApiV3PlayoffStructure> get_event_playoff_structure(cmp_year, event_code)
|
|
615
|
+
|
|
616
|
+
Get playoff structure
|
|
617
|
+
|
|
618
|
+
Gets programmatic description of the playoff structure (e.g. bracket) structure for event. Contains sufficient information to construct a bracket display.
|
|
619
|
+
|
|
620
|
+
### Examples
|
|
621
|
+
|
|
622
|
+
```ruby
|
|
623
|
+
require 'time'
|
|
624
|
+
require 'ftc_api_v3_client'
|
|
625
|
+
# setup authorization
|
|
626
|
+
FtcApiV3Client.configure do |config|
|
|
627
|
+
# Configure API key authorization: ApiKeyAuth
|
|
628
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
|
629
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
630
|
+
# config.api_key_prefix['api_key'] = 'Bearer'
|
|
631
|
+
end
|
|
632
|
+
|
|
633
|
+
api_instance = FtcApiV3Client::EventsApi.new
|
|
634
|
+
cmp_year = 'cmp_year_example' # String | The year of the FIRST Championship for the requested season
|
|
635
|
+
event_code = 'event_code_example' # String | The code (abbreviation) for the event
|
|
636
|
+
|
|
637
|
+
begin
|
|
638
|
+
# Get playoff structure
|
|
639
|
+
result = api_instance.get_event_playoff_structure(cmp_year, event_code)
|
|
640
|
+
p result
|
|
641
|
+
rescue FtcApiV3Client::ApiError => e
|
|
642
|
+
puts "Error when calling EventsApi->get_event_playoff_structure: #{e}"
|
|
643
|
+
end
|
|
644
|
+
```
|
|
645
|
+
|
|
646
|
+
#### Using the get_event_playoff_structure_with_http_info variant
|
|
647
|
+
|
|
648
|
+
This returns an Array which contains the response data, status code and headers.
|
|
649
|
+
|
|
650
|
+
> <Array(<ApiV3PlayoffStructure>, Integer, Hash)> get_event_playoff_structure_with_http_info(cmp_year, event_code)
|
|
651
|
+
|
|
652
|
+
```ruby
|
|
653
|
+
begin
|
|
654
|
+
# Get playoff structure
|
|
655
|
+
data, status_code, headers = api_instance.get_event_playoff_structure_with_http_info(cmp_year, event_code)
|
|
656
|
+
p status_code # => 2xx
|
|
657
|
+
p headers # => { ... }
|
|
658
|
+
p data # => <ApiV3PlayoffStructure>
|
|
659
|
+
rescue FtcApiV3Client::ApiError => e
|
|
660
|
+
puts "Error when calling EventsApi->get_event_playoff_structure_with_http_info: #{e}"
|
|
661
|
+
end
|
|
662
|
+
```
|
|
663
|
+
|
|
664
|
+
### Parameters
|
|
665
|
+
|
|
666
|
+
| Name | Type | Description | Notes |
|
|
667
|
+
| ---- | ---- | ----------- | ----- |
|
|
668
|
+
| **cmp_year** | **String** | The year of the FIRST Championship for the requested season | |
|
|
669
|
+
| **event_code** | **String** | The code (abbreviation) for the event | |
|
|
670
|
+
|
|
671
|
+
### Return type
|
|
672
|
+
|
|
673
|
+
[**ApiV3PlayoffStructure**](ApiV3PlayoffStructure.md)
|
|
674
|
+
|
|
675
|
+
### Authorization
|
|
676
|
+
|
|
677
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
678
|
+
|
|
679
|
+
### HTTP request headers
|
|
680
|
+
|
|
681
|
+
- **Content-Type**: Not defined
|
|
682
|
+
- **Accept**: application/json
|
|
683
|
+
|
|
684
|
+
|
|
685
|
+
## get_event_rankings
|
|
686
|
+
|
|
687
|
+
> <ApiV3Rankings> get_event_rankings(cmp_year, event_code)
|
|
688
|
+
|
|
689
|
+
Get event rankings
|
|
690
|
+
|
|
691
|
+
Gets rankings for a given event. Each sort order field is season-specific: see the season's competition manual for definitions. Do not use for league meets or multi-division parent events
|
|
692
|
+
|
|
693
|
+
### Examples
|
|
694
|
+
|
|
695
|
+
```ruby
|
|
696
|
+
require 'time'
|
|
697
|
+
require 'ftc_api_v3_client'
|
|
698
|
+
# setup authorization
|
|
699
|
+
FtcApiV3Client.configure do |config|
|
|
700
|
+
# Configure API key authorization: ApiKeyAuth
|
|
701
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
|
702
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
703
|
+
# config.api_key_prefix['api_key'] = 'Bearer'
|
|
704
|
+
end
|
|
705
|
+
|
|
706
|
+
api_instance = FtcApiV3Client::EventsApi.new
|
|
707
|
+
cmp_year = 'cmp_year_example' # String | The year of the FIRST Championship for the requested season
|
|
708
|
+
event_code = 'event_code_example' # String | The code (abbreviation) for the event
|
|
709
|
+
|
|
710
|
+
begin
|
|
711
|
+
# Get event rankings
|
|
712
|
+
result = api_instance.get_event_rankings(cmp_year, event_code)
|
|
713
|
+
p result
|
|
714
|
+
rescue FtcApiV3Client::ApiError => e
|
|
715
|
+
puts "Error when calling EventsApi->get_event_rankings: #{e}"
|
|
716
|
+
end
|
|
717
|
+
```
|
|
718
|
+
|
|
719
|
+
#### Using the get_event_rankings_with_http_info variant
|
|
720
|
+
|
|
721
|
+
This returns an Array which contains the response data, status code and headers.
|
|
722
|
+
|
|
723
|
+
> <Array(<ApiV3Rankings>, Integer, Hash)> get_event_rankings_with_http_info(cmp_year, event_code)
|
|
724
|
+
|
|
725
|
+
```ruby
|
|
726
|
+
begin
|
|
727
|
+
# Get event rankings
|
|
728
|
+
data, status_code, headers = api_instance.get_event_rankings_with_http_info(cmp_year, event_code)
|
|
729
|
+
p status_code # => 2xx
|
|
730
|
+
p headers # => { ... }
|
|
731
|
+
p data # => <ApiV3Rankings>
|
|
732
|
+
rescue FtcApiV3Client::ApiError => e
|
|
733
|
+
puts "Error when calling EventsApi->get_event_rankings_with_http_info: #{e}"
|
|
734
|
+
end
|
|
735
|
+
```
|
|
736
|
+
|
|
737
|
+
### Parameters
|
|
738
|
+
|
|
739
|
+
| Name | Type | Description | Notes |
|
|
740
|
+
| ---- | ---- | ----------- | ----- |
|
|
741
|
+
| **cmp_year** | **String** | The year of the FIRST Championship for the requested season | |
|
|
742
|
+
| **event_code** | **String** | The code (abbreviation) for the event | |
|
|
743
|
+
|
|
744
|
+
### Return type
|
|
745
|
+
|
|
746
|
+
[**ApiV3Rankings**](ApiV3Rankings.md)
|
|
747
|
+
|
|
748
|
+
### Authorization
|
|
749
|
+
|
|
750
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
751
|
+
|
|
752
|
+
### HTTP request headers
|
|
753
|
+
|
|
754
|
+
- **Content-Type**: Not defined
|
|
755
|
+
- **Accept**: application/json
|
|
756
|
+
|
|
757
|
+
|
|
758
|
+
## list_event_matches
|
|
759
|
+
|
|
760
|
+
> <ApiV3Matches> list_event_matches(cmp_year, event_code, opts)
|
|
761
|
+
|
|
762
|
+
List event matches
|
|
763
|
+
|
|
764
|
+
Gets matches for a given event. Includes winner and score information if available. Score details must be fetched per match.
|
|
765
|
+
|
|
766
|
+
### Examples
|
|
767
|
+
|
|
768
|
+
```ruby
|
|
769
|
+
require 'time'
|
|
770
|
+
require 'ftc_api_v3_client'
|
|
771
|
+
# setup authorization
|
|
772
|
+
FtcApiV3Client.configure do |config|
|
|
773
|
+
# Configure API key authorization: ApiKeyAuth
|
|
774
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
|
775
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
776
|
+
# config.api_key_prefix['api_key'] = 'Bearer'
|
|
777
|
+
end
|
|
778
|
+
|
|
779
|
+
api_instance = FtcApiV3Client::EventsApi.new
|
|
780
|
+
cmp_year = 'cmp_year_example' # String | The year of the FIRST Championship for the requested season
|
|
781
|
+
event_code = 'event_code_example' # String | The code (abbreviation) for the event
|
|
782
|
+
opts = {
|
|
783
|
+
phase: FtcApiV3Client::ApiV3TournamentLevel::QUALIFICATION # ApiV3TournamentLevel | Filter matches to a specific phase
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
begin
|
|
787
|
+
# List event matches
|
|
788
|
+
result = api_instance.list_event_matches(cmp_year, event_code, opts)
|
|
789
|
+
p result
|
|
790
|
+
rescue FtcApiV3Client::ApiError => e
|
|
791
|
+
puts "Error when calling EventsApi->list_event_matches: #{e}"
|
|
792
|
+
end
|
|
793
|
+
```
|
|
794
|
+
|
|
795
|
+
#### Using the list_event_matches_with_http_info variant
|
|
796
|
+
|
|
797
|
+
This returns an Array which contains the response data, status code and headers.
|
|
798
|
+
|
|
799
|
+
> <Array(<ApiV3Matches>, Integer, Hash)> list_event_matches_with_http_info(cmp_year, event_code, opts)
|
|
800
|
+
|
|
801
|
+
```ruby
|
|
802
|
+
begin
|
|
803
|
+
# List event matches
|
|
804
|
+
data, status_code, headers = api_instance.list_event_matches_with_http_info(cmp_year, event_code, opts)
|
|
805
|
+
p status_code # => 2xx
|
|
806
|
+
p headers # => { ... }
|
|
807
|
+
p data # => <ApiV3Matches>
|
|
808
|
+
rescue FtcApiV3Client::ApiError => e
|
|
809
|
+
puts "Error when calling EventsApi->list_event_matches_with_http_info: #{e}"
|
|
810
|
+
end
|
|
811
|
+
```
|
|
812
|
+
|
|
813
|
+
### Parameters
|
|
814
|
+
|
|
815
|
+
| Name | Type | Description | Notes |
|
|
816
|
+
| ---- | ---- | ----------- | ----- |
|
|
817
|
+
| **cmp_year** | **String** | The year of the FIRST Championship for the requested season | |
|
|
818
|
+
| **event_code** | **String** | The code (abbreviation) for the event | |
|
|
819
|
+
| **phase** | [**ApiV3TournamentLevel**](.md) | Filter matches to a specific phase | [optional] |
|
|
820
|
+
|
|
821
|
+
### Return type
|
|
822
|
+
|
|
823
|
+
[**ApiV3Matches**](ApiV3Matches.md)
|
|
824
|
+
|
|
825
|
+
### Authorization
|
|
826
|
+
|
|
827
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
828
|
+
|
|
829
|
+
### HTTP request headers
|
|
830
|
+
|
|
831
|
+
- **Content-Type**: Not defined
|
|
832
|
+
- **Accept**: application/json
|
|
833
|
+
|
|
834
|
+
|
|
835
|
+
## list_event_teams
|
|
836
|
+
|
|
837
|
+
> <ApiV3EventParticipants> list_event_teams(cmp_year, event_code)
|
|
838
|
+
|
|
839
|
+
List teams for an event
|
|
840
|
+
|
|
841
|
+
Lists all teams competing at the event. This includes division assignments if published for this event (and this event is a multi-division parent event). In some cases, teams may be award recipients but not returned in this list. Their information can be fetched individually by number.
|
|
842
|
+
|
|
843
|
+
### Examples
|
|
844
|
+
|
|
845
|
+
```ruby
|
|
846
|
+
require 'time'
|
|
847
|
+
require 'ftc_api_v3_client'
|
|
848
|
+
# setup authorization
|
|
849
|
+
FtcApiV3Client.configure do |config|
|
|
850
|
+
# Configure API key authorization: ApiKeyAuth
|
|
851
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
|
852
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
853
|
+
# config.api_key_prefix['api_key'] = 'Bearer'
|
|
854
|
+
end
|
|
855
|
+
|
|
856
|
+
api_instance = FtcApiV3Client::EventsApi.new
|
|
857
|
+
cmp_year = 'cmp_year_example' # String | The year of the FIRST Championship for the requested season
|
|
858
|
+
event_code = 'event_code_example' # String | The code (abbreviation) for the event
|
|
859
|
+
|
|
860
|
+
begin
|
|
861
|
+
# List teams for an event
|
|
862
|
+
result = api_instance.list_event_teams(cmp_year, event_code)
|
|
863
|
+
p result
|
|
864
|
+
rescue FtcApiV3Client::ApiError => e
|
|
865
|
+
puts "Error when calling EventsApi->list_event_teams: #{e}"
|
|
866
|
+
end
|
|
867
|
+
```
|
|
868
|
+
|
|
869
|
+
#### Using the list_event_teams_with_http_info variant
|
|
870
|
+
|
|
871
|
+
This returns an Array which contains the response data, status code and headers.
|
|
872
|
+
|
|
873
|
+
> <Array(<ApiV3EventParticipants>, Integer, Hash)> list_event_teams_with_http_info(cmp_year, event_code)
|
|
874
|
+
|
|
875
|
+
```ruby
|
|
876
|
+
begin
|
|
877
|
+
# List teams for an event
|
|
878
|
+
data, status_code, headers = api_instance.list_event_teams_with_http_info(cmp_year, event_code)
|
|
879
|
+
p status_code # => 2xx
|
|
880
|
+
p headers # => { ... }
|
|
881
|
+
p data # => <ApiV3EventParticipants>
|
|
882
|
+
rescue FtcApiV3Client::ApiError => e
|
|
883
|
+
puts "Error when calling EventsApi->list_event_teams_with_http_info: #{e}"
|
|
884
|
+
end
|
|
885
|
+
```
|
|
886
|
+
|
|
887
|
+
### Parameters
|
|
888
|
+
|
|
889
|
+
| Name | Type | Description | Notes |
|
|
890
|
+
| ---- | ---- | ----------- | ----- |
|
|
891
|
+
| **cmp_year** | **String** | The year of the FIRST Championship for the requested season | |
|
|
892
|
+
| **event_code** | **String** | The code (abbreviation) for the event | |
|
|
893
|
+
|
|
894
|
+
### Return type
|
|
895
|
+
|
|
896
|
+
[**ApiV3EventParticipants**](ApiV3EventParticipants.md)
|
|
897
|
+
|
|
898
|
+
### Authorization
|
|
899
|
+
|
|
900
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
901
|
+
|
|
902
|
+
### HTTP request headers
|
|
903
|
+
|
|
904
|
+
- **Content-Type**: Not defined
|
|
905
|
+
- **Accept**: application/json
|
|
906
|
+
|
|
907
|
+
|
|
908
|
+
## list_events
|
|
909
|
+
|
|
910
|
+
> <ApiV3Events> list_events(cmp_year)
|
|
911
|
+
|
|
912
|
+
List events for a season
|
|
913
|
+
|
|
914
|
+
Lists all events for a season
|
|
915
|
+
|
|
916
|
+
### Examples
|
|
917
|
+
|
|
918
|
+
```ruby
|
|
919
|
+
require 'time'
|
|
920
|
+
require 'ftc_api_v3_client'
|
|
921
|
+
# setup authorization
|
|
922
|
+
FtcApiV3Client.configure do |config|
|
|
923
|
+
# Configure API key authorization: ApiKeyAuth
|
|
924
|
+
config.api_key['api_key'] = 'YOUR API KEY'
|
|
925
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
926
|
+
# config.api_key_prefix['api_key'] = 'Bearer'
|
|
927
|
+
end
|
|
928
|
+
|
|
929
|
+
api_instance = FtcApiV3Client::EventsApi.new
|
|
930
|
+
cmp_year = 'cmp_year_example' # String | The year of the FIRST Championship for the requested season
|
|
931
|
+
|
|
932
|
+
begin
|
|
933
|
+
# List events for a season
|
|
934
|
+
result = api_instance.list_events(cmp_year)
|
|
935
|
+
p result
|
|
936
|
+
rescue FtcApiV3Client::ApiError => e
|
|
937
|
+
puts "Error when calling EventsApi->list_events: #{e}"
|
|
938
|
+
end
|
|
939
|
+
```
|
|
940
|
+
|
|
941
|
+
#### Using the list_events_with_http_info variant
|
|
942
|
+
|
|
943
|
+
This returns an Array which contains the response data, status code and headers.
|
|
944
|
+
|
|
945
|
+
> <Array(<ApiV3Events>, Integer, Hash)> list_events_with_http_info(cmp_year)
|
|
946
|
+
|
|
947
|
+
```ruby
|
|
948
|
+
begin
|
|
949
|
+
# List events for a season
|
|
950
|
+
data, status_code, headers = api_instance.list_events_with_http_info(cmp_year)
|
|
951
|
+
p status_code # => 2xx
|
|
952
|
+
p headers # => { ... }
|
|
953
|
+
p data # => <ApiV3Events>
|
|
954
|
+
rescue FtcApiV3Client::ApiError => e
|
|
955
|
+
puts "Error when calling EventsApi->list_events_with_http_info: #{e}"
|
|
956
|
+
end
|
|
957
|
+
```
|
|
958
|
+
|
|
959
|
+
### Parameters
|
|
960
|
+
|
|
961
|
+
| Name | Type | Description | Notes |
|
|
962
|
+
| ---- | ---- | ----------- | ----- |
|
|
963
|
+
| **cmp_year** | **String** | The year of the FIRST Championship for the requested season | |
|
|
964
|
+
|
|
965
|
+
### Return type
|
|
966
|
+
|
|
967
|
+
[**ApiV3Events**](ApiV3Events.md)
|
|
968
|
+
|
|
969
|
+
### Authorization
|
|
970
|
+
|
|
971
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
972
|
+
|
|
973
|
+
### HTTP request headers
|
|
974
|
+
|
|
975
|
+
- **Content-Type**: Not defined
|
|
976
|
+
- **Accept**: application/json
|
|
977
|
+
|