DoubleYouGTT / hubspot

R package 📦 for working with Hubspot 👩‍💼👨‍💼 data
https://itsalocke.com/hubspot/
Other
10 stars 8 forks source link

Add support for Get all contact lists endpoint #85

Closed maelle closed 4 years ago

maelle commented 4 years ago
#' WIP - Get all contact lists (raw and tidy)
#'
#' @description Return the contact lists for a portal. from the [Get all contact lists endpoint](https://developers.hubspot.com/docs/methods/lists/get_lists).
#' @note NOT IMPLEMENTED YET
#' @details Required scope(s) for the OAuth token: contacts.
#' @template token_path
#' @template apikey
#'
#' @return A list (`hs_contact_lists_raw()`)
#' @rdname contact-lists
#' @export
#' @examples
#' \donttest{
#' hs_contact_lists_raw()
#' }
hs_contact_lists_raw <- function() {
  path <- " /contacts/v1/lists"
}
# tidiers -----------------------------------------------------------------
#' @rdname contact-lists
#' @template contact_lists
#' @template view
#' @return A tibble with associated entities (`hs_contact_lists_raw()`)
#' @export
hs_contact_lists_raw <- function(contact_lists = hs_contact_lists_raw(),
                                 view = "lalalala") {
  # view <- match.arg(view, c('lalalala'))

  # switch(view,
  #       'lalalala' = blabla)
}
maelle commented 4 years ago

(test)