Fetch rules corresponding to a specific game type ID.
Usage
dk_get_game_type_rules(
game_type_id = NULL,
contest_key = NULL,
output = c("cleaned_json", "json", "response", "request"),
process_args = NULL,
...
)Arguments
- game_type_id
Integer corresponding to the game type. For example, 159 in https://api.draftkings.com/lineups/v1/gametypes/159/rules. If both
game_type_idandcontest_keyare passed, thencontest_keyis ignored.- contest_key
The sequence of digits that correspond to a specific contest. This can be found by examining the URL of a contest page. For example: https://www.draftkings.com/draft/contest/133645678#. Here the contest ID is 133645678.
- output
One of "cleaned_json" (the default), "json", "response", or "request". If "cleaned_json" then
tidyjson::spread_all()is used to parse the JSON body,- process_args
Optional list of arguments passed to
dk_req_process- ...
Arguments passed on to
dk_reqquery_paramsA list of query parameters passed to
[httr2::req_url_query].proxy_argsList of arguments to httr2::req_proxy
curl_optionsList of arguments to httr2::req_options
throttle_rateList of arguments to httr2::req_throttle
headersList of arguments to
httr2::req_headers()pathsList of arguments to
httr2::req_url_path_append()error_handling_optionsList of arguments to
httr2::req_error()retry_optionsList of arguments passed to
httr2::req_retry()base_urlBase URL for request.
methodCustom HTTP method
