Nothing
# espn_wbb_awards.R
# Public WBB shims for ESPN season-awards endpoints.
# ---------------------------------------------------------------------------
# espn_wbb_season_awards
# ---------------------------------------------------------------------------
#' **Get ESPN WBB Season Awards Index**
#' @name espn_wbb_season_awards
NULL
#' @title
#' **Get ESPN WBB Season Awards Index**
#' @rdname espn_wbb_season_awards
#' @author Saiem Gilani
#' @description
#' Returns the list of award IDs given out in a WBB season from
#' `sports.core.api.espn.com/v2/sports/basketball/leagues/womens-college-basketball/seasons/{season}/awards`.
#' The index only contains IDs and `$ref` URLs — pass an ID to
#' [espn_wbb_award()] for the award name, description, and winners.
#'
#' @param season Season year (numeric). Defaults to the most recent WBB season.
#' @param ... Additional arguments; currently unused.
#' @return A tibble with one row per award.
#'
#' |col_name |types |description |
#' |:--------|:---------|:--------------------------------------------|
#' |season |integer |Season year. |
#' |award_id |character |ESPN award identifier. |
#' |ref |character |Full `$ref` URL for the award detail. |
#' |league |character |League slug (`"womens-college-basketball"`). |
#'
#' @importFrom jsonlite fromJSON
#' @importFrom dplyr as_tibble
#' @export
#' @family ESPN WBB Functions
#' @examples
#' \donttest{
#' espn_wbb_season_awards(season = 2024)
#' }
espn_wbb_season_awards <- function(season = most_recent_wbb_season(), ...) {
.espn_basketball_season_awards(league = "womens-college-basketball",
season = season, ...)
}
# ---------------------------------------------------------------------------
# espn_wbb_award
# ---------------------------------------------------------------------------
#' **Get ESPN WBB Season Award Detail**
#' @name espn_wbb_award
NULL
#' @title
#' **Get ESPN WBB Season Award Detail**
#' @rdname espn_wbb_award
#' @author Saiem Gilani
#' @description
#' Returns the name, description, and winners of one WBB season award.
#'
#' @param award_id ESPN award identifier (character or numeric).
#' @param season Season year (numeric). Defaults to the most recent WBB season.
#' @param ... Additional arguments; currently unused.
#' @return A tibble with one row per winner.
#'
#' \if{html}{\tabular{lll}{
#' col_name \tab types \tab description \cr
#' league \tab character \tab League slug. \cr
#' season \tab integer \tab Season year. \cr
#' award_id \tab character \tab ESPN award identifier. \cr
#' name \tab character \tab Award name. \cr
#' description \tab character \tab Award description. \cr
#' athlete_id \tab character \tab ESPN athlete id of winner. \cr
#' team_id \tab character \tab ESPN team id. \cr
#' athlete_ref \tab character \tab \verb{$ref} to winner's per-season athlete resource. \cr
#' team_ref \tab character \tab \verb{$ref} to winner's per-season team resource. \cr
#' }}
#' \if{latex}{See the HTML help or pkgdown reference for the column table.}
#'
#' @importFrom jsonlite fromJSON
#' @importFrom dplyr as_tibble
#' @export
#' @family ESPN WBB Functions
#' @examples
#' \donttest{
#' espn_wbb_award(award_id = 344, season = 2024)
#' }
espn_wbb_award <- function(award_id,
season = most_recent_wbb_season(),
...) {
.espn_basketball_award(
league = "womens-college-basketball",
season = season,
award_id = award_id,
...
)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.