hipchat_room_id: Convert a Hipchat room name to an ID.

Description Usage Arguments Value Note

View source: R/room.R

Description

This function will call the /v2/room API route if necessary to fetch the room-id map. If a room has been found before, it will use the cached value. Otherwise, if it is not found, it will refresh the cache.

Usage

1
hipchat_room_id(room_name, api_token = hipchat_api_token())

Arguments

room_name

character. A character vector giving the room name. This is vectorized if you would like IDs for multiple rooms.

api_token

character. By default, hipchat_api_token().

Value

A named integer vector, with the names being the room names and the values being the room IDs. If a room ID is not found, the value returned will be NA, so that if you pass in one room name and it does not exist, NA will be returned.

Note

This will call the hipchat API at https://api.hipchat.com/v2/room to fetch the room-id map.


robertzk/hipchat documentation built on May 27, 2019, 10:34 a.m.