R/rb_history_by_customer_id.R

Defines functions rb_history_by_customer_id

Documented in rb_history_by_customer_id

#' List of calls by Customer ID
#'
#' List of incoming and outgoing calls by Customer ID
#' @param customer_id Customer ID
#' @export
rb_history_by_customer_id <- function(customer_id) {
  parsed <- send_api_request("stats/history-by-customer-id", list(customerID = customer_id))
  tb <- to_tibble(parsed$callDetails)
  return(tb)
}
DenUsenko/rbinotel documentation built on Oct. 17, 2020, 8:54 p.m.