R/collections.R

Defines functions get_collections lookup_collections

Documented in get_collections lookup_collections

#' Collections API 
#' 
#' @description 
#' `r lifecycle::badge("deprecated")`
#' 
#' `get_collections()` and `lookup_collections()` have been deprecated
#' since the underlying Twitter API has been deprecated:
#' <https://developer.twitter.com/en/docs/twitter-for-websites/timelines/guides/collection>.
#'
#' @keywords internal
#' @export
lookup_collections <- function(id, n = 200,
                               parse = TRUE,
                               token = NULL,
                               ...) {
  lifecycle::deprecate_stop("1.0.0", "lookup_collections()")
}

#' @export
#' @rdname lookup_collections
get_collections <- function(user = NULL,
                            status_id = NULL,
                            n = 200,
                            cursor = NULL,
                            parse = TRUE,
                            token = NULL) {
  
  lifecycle::deprecate_stop("1.0.0", "get_collections()")
}
mkearney/rtweet documentation built on Sept. 29, 2021, 12:01 p.m.