Get and Post data via the pinnaclesports.com API . This R package makes it easy to interact with this API.
library(pinnacleAPI)
## set user/pwd this should be called only at initialisation
set_ser("user1")
set_pwd("pwd")
## get all sports
res <- GetSports()
The package is not already in the CRAN but you can install the development version from Github:
if (!require('devtools')) install.packages('devtools')
devtools::install_github('agstudy/pinnacleAPI')
In addiotional to the API documenation all the function in the package are documented.
You can see inst/tests for examples of use.
To run tests
library(testthat)
test_package("pinnacleAPI")
This package is licensed to you under the terms of the MIT License.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.