ff_userleagues: Get User Leagues

View source: R/0_generics.R

ff_userleaguesR Documentation

Get User Leagues

Description

This function returns a tidy dataframe with one row for every league a user is in. This requries authentication cookies for MFL usage.

Usage

ff_userleagues(conn, ...)

## S3 method for class 'espn_conn'
ff_userleagues(conn = NULL, ...)

## S3 method for class 'flea_conn'
ff_userleagues(conn = NULL, user_email = NULL, season = NULL, ...)

## S3 method for class 'mfl_conn'
ff_userleagues(conn, season = NULL, ...)

## S3 method for class 'sleeper_conn'
ff_userleagues(conn = NULL, user_name = NULL, season = NULL, ...)

Arguments

conn

a connection object created by ff_connect()

...

arguments that may be passed to other methods (for method consistency)

user_email

the username to look up - defaults to user created in conn if available

season

the season to look up leagues for

user_name

the username to look up - defaults to user created in conn if available

Value

A tidy dataframe with one row for every league a user is in

Methods (by class)

  • ff_userleagues(espn_conn): ESPN: does not support a lookup of user leagues by email or user ID at this time.

  • ff_userleagues(flea_conn): flea: returns a listing of leagues for a given user_email

  • ff_userleagues(mfl_conn): MFL: With username/password, it will return a list of user leagues.

  • ff_userleagues(sleeper_conn): Sleeper: returns a listing of leagues for a given user_id or user_name

See Also

fleaflicker_userleagues() to call this function for flea leagues without first creating a connection object.

sleeper_userleagues() to call this function for Sleeper leagues without first creating a connection object.


ffscrapr documentation built on Feb. 16, 2023, 10:55 p.m.