Touches SORACOM API (v1) from R.
# install.packages("devtools")
devtools::install_github("kos59125/soracomr")
library(soracomr)
# Get a 30-minute-lifetime token for API use
token <- get_token("Your Email Address", "Your Password", timeout = "30 mins")
# Get subscribers
subscribers <- list_subscribers(token)
print(subscribers)
# Get report for the first subscriber
first_subscriber <- head(subscribers, 1)
stats <- get_stats(token, first_subscriber, period = "minutes")
print(head(stats))