Skip to contents

Update the custom API Token to select the team to pull for the remainder of values Must be saved as the token values ie token <- EF_UpdateTokenTeam(token, 1)

Usage

EF_UpdateTokenTeam(token, TEAM_ID)

Arguments

token

API Token Object (see EF_CreateAPIToken

TEAM_ID

Team Id referenced in EF_GetTeamsList

Value

Custom API Token Object

Examples

#Intialize Token
token <- EF_CreateAPIToken("https://your.eliteform.com", "your-api-key")
#> Error in assign(mname, def, where): cannot add bindings to a locked environment

# Get Team ID
Team_list <- EF_GetTeamsList(token)
#> Error in GET(url = paste0(token@url, "/api/v1/getteamslist"), add_headers(accept = "application",     `X-ApiKey` = token@api_key)): could not find function "GET"

# Update Token with Team ID
token <- EF_UpdateTokenTeam(token, TEAM_ID$TeamId)
#> Error: object 'TEAM_ID' not found