sihf_api: Generi Call to SIHF API

Description Usage Arguments Value Examples

View source: R/api.R

Description

Generi Call to SIHF API

Usage

1
sihf_api(path, query)

Arguments

path

Character string for path to desired API endpoint

query

Search query; see examples and ?httr::modify_url

Value

httr response object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Query game list
## Not run: 
resp <- sihf_api("/statistic/api/cms/table", query = list(
  alias       = "results",
  searchQuery = "1,8,10,11//1,8,9,20,47,48,50,90,81",
  filterQuery = "2017/1/01.09.2016-12.09.2017",
  filterBy    = "Season,League,Date"
  ))

## End(Not run)

msenn/sihfapi documentation built on May 17, 2019, 2:45 p.m.