y_transactions: Get transaction data from Yahoo! Fantasy API.

View source: R/y_transactions.R

y_transactionsR Documentation

Get transaction data from Yahoo! Fantasy API.

Description

This function returns data from the transactions resource. - Transactions include: - add - drop - trade - commissioner A single transaction can have multiple parts such as an add drop. Waivers transactions are not included in this function.

Usage

y_transactions(
  key = NULL,
  token_name = NULL,
  count = NULL,
  transaction_type = NULL,
  debug = FALSE,
  quiet = TRUE
)

Arguments

key

league key or team key as a string in the form "000.l.0000" or "000.l.0000.t.0".

token_name

Name used for assignment when creating token object with 'y_create_token()'.

count

Number of transactions to return.

transaction_type

Filter argument for request. Accepts 1 of "commish", "add", "drop", "trade".

debug

Returns a list of data such as uri call and content. Useful for debugging.

quiet

Print function activity.

Value

A tibble.


macraesdirtysocks/YFAR documentation built on March 20, 2022, 2:07 a.m.