R/lists_memberships.R

Defines functions twtr_lists_memberships

Documented in twtr_lists_memberships

#' GET lists/memberships
#'
#' @seealso \url{https://dev.twitter.com/rest/reference/get/lists/memberships}
#' @param user_id
#'      The ID of the user for whom to return results for. Helpful for disambiguating when a valid user ID
#'      is also a valid screen name.
#' @param screen_name
#'      The screen name of the user for whom to return results for. Helpful for disambiguating when a valid
#'      screen name is also a user ID.
#' @param count
#'      The amount of results to return per page. Defaults to 20. No more than 1000 results will ever be
#'      returned in a single page.
#' @param cursor
#'      Breaks the results into pages. Provide a value of -1 to begin paging. Provide values as returned in
#'      the response bodyfs next_cursor and previous_cursor attributes to page back and forth in the list.
#'      It is recommended to always use cursors when the method supports them. See [node:10362] for more
#'      information.
#' @param filter_to_owned_lists
#'      When set to true, t or 1, will return just lists the authenticating user owns, and the user
#'      represented by user_id or screen_name is a member of.
#' @export
twtr_lists_memberships <- function(user_id = NULL, screen_name = NULL, count = NULL, cursor = NULL, filter_to_owned_lists = NULL, ...) {
    twtr_api("GET", "https://api.twitter.com/1.1/lists/memberships.json", query = list(user_id = user_id, screen_name = screen_name, count = count, 
        cursor = cursor, filter_to_owned_lists = filter_to_owned_lists, ...))
}
yutannihilation/twihttr documentation built on May 4, 2019, 7:46 p.m.