LotameR is an R package to interact with the Lotame API.
Full interative documentation for the Lotame API can be found here. To request an additional function to this package please submit an issue. Documentation is currently a work in progress, but all functions should include options as listed within the API documentation.
The package can be installed using the following code:
library(devtools)
install_github(c("jackpalmer/LotameR", "jackpalmer/LotameR"))
After installation, the package can be loaded into R.
library(LotameR)
To start generate a ticket granting ticket, which is valid for 3 hours.
ticket <- lotame_ticket("username","password")
To return a data.frame of audiences in the client account call:
audiences <- lotame_audiences(client_id = "client_id")
To generate a data.frame of affinity data for an audience call:
affinity_data <- lotame_audience_affinity(audience_id = "audience_id",
sort_attr = "index30",
paginate_query = TRUE)
Report bugs as issues on the GitHub repository
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.