Struct hipchat_client::client::Client
[−]
[src]
pub struct Client { /* fields omitted */ }
Methods
impl Client
[src]
fn new<T: Into<String>, O: AsRef<str>>(origin: O, token: T) -> Self
Creates a new HipChat API v2 client
fn with_hyper_client<T: Into<String>, O: AsRef<str>>(
origin: O,
token: T,
hyper_client: HyperClient
) -> Self
origin: O,
token: T,
hyper_client: HyperClient
) -> Self
Creates a new HipChat API v2 client with the specified Hyper client
fn with_timeouts<T: Into<String>, O: AsRef<str>>(
origin: O,
token: T,
duration: Duration
) -> Self
origin: O,
token: T,
duration: Duration
) -> Self
Creates a new HipChat API v2 client that has read and write timeouts
fn get_emoticon<T: AsRef<str>>(
&self,
emoticon_id_or_shortcut: T
) -> Result<Emoticon, Error>
&self,
emoticon_id_or_shortcut: T
) -> Result<Emoticon, Error>
fn get_room<T: AsRef<str>>(
&self,
room_id_or_name: T
) -> Result<RoomDetail, Error>
&self,
room_id_or_name: T
) -> Result<RoomDetail, Error>
fn update_room<T: AsRef<str>>(
&self,
room_id_or_name: T,
req: &RoomUpdate
) -> Result<(), Error>
&self,
room_id_or_name: T,
req: &RoomUpdate
) -> Result<(), Error>
fn delete_room<T: AsRef<str>>(&self, room_id_or_name: T) -> Result<(), Error>
fn get_rooms(&self, req: Option<&RoomsRequest>) -> Result<Rooms, Error>
fn send_message<T: AsRef<str>, U: Into<String>>(
&self,
room_id_or_name: T,
message: U
) -> Result<SendMessageResponse, Error>
&self,
room_id_or_name: T,
message: U
) -> Result<SendMessageResponse, Error>
fn get_private_messages<T: AsRef<str>>(
&self,
user_id_or_email: T,
req: Option<&MessagesRequest>
) -> Result<Messages, Error>
&self,
user_id_or_email: T,
req: Option<&MessagesRequest>
) -> Result<Messages, Error>
fn get_recent_history<T: AsRef<str>>(
&self,
room_id_or_name: T
) -> Result<Messages, Error>
&self,
room_id_or_name: T
) -> Result<Messages, Error>
fn send_notification<T: AsRef<str>>(
&self,
room_id_or_name: T,
notification: &Notification
) -> Result<(), Error>
&self,
room_id_or_name: T,
notification: &Notification
) -> Result<(), Error>
fn get_users(&self, req: Option<&UsersRequest>) -> Result<Users, Error>
fn get_user<T: AsRef<str>>(
&self,
user_id_or_name: T
) -> Result<UserDetail, Error>
&self,
user_id_or_name: T
) -> Result<UserDetail, Error>