R/friendships_create.R

Defines functions twtr_friendships_create

Documented in twtr_friendships_create

#' POST friendships/create
#'
#' @seealso \url{https://dev.twitter.com/rest/reference/post/friendships/create}
#' @param screen_name
#'      The screen name of the user for whom to befriend.
#'      Example Values: noradio
#' @param user_id
#'      The ID of the user for whom to befriend.
#'      Example Values: 12345
#' @param follow
#'      Enable notifications for the target user.
#'      Example Values: true
#' @export
twtr_friendships_create <- function(screen_name = NULL, user_id = NULL, follow = NULL, ...) {
    twtr_api("POST", "https://api.twitter.com/1.1/friendships/create.json", body = list(screen_name = screen_name, user_id = user_id, follow = follow, 
        ...))
}
yutannihilation/twihttr documentation built on May 4, 2019, 7:46 p.m.