Module slacker_channel

Function Index

archive/2Archives a channel.
create/2Creates a channel.
history/3Fetches history of messages and events from a channel.
info/2Returns information about a team channel.
invite/3Invites a user to a channel.
join/2Join a channel.
kick/3Removes a user from a channel.
leave/2Leave a channel.
list/2List of all channels in the team.
mark/3Set read cursor in a channel.
rename/3Rename a channel.
set_purpose/3Sets the purpose for a channel.
set_topic/3Sets the topic for a channel.
unarchive/2Unarchives a channel.

Function Details

archive/2

archive(Token::string(), Channel::string()) -> http_response()

Archives a channel.

create/2

create(Token::string(), Name::string()) -> http_response()

Creates a channel.

history/3

history(Token::string(), Channel::string(), Options::list()) -> http_response()

Fetches history of messages and events from a channel.

Options can be: latest: end of time range of messages to include in results oldest: start of time range of messages to include in results inclusive: include messages with latest or oldest timestamp in results (default: 0) count: number of messages to return, between 1 and 1000 (default: 100) unreads: include unread_count_display in the output (default: 0)

info/2

info(Token::string(), Channel::string()) -> http_response()

Returns information about a team channel.

invite/3

invite(Token::string(), Channel::string(), User::string()) -> http_response()

Invites a user to a channel.

join/2

join(Token::string(), Channel::string()) -> http_response()

Join a channel. If the channel does not exist, it is created.

kick/3

kick(Token::string(), Channel::string(), User::string()) -> http_response()

Removes a user from a channel.

leave/2

leave(Token::string(), Channel::string()) -> http_response()

Leave a channel.

list/2

list(Token::string(), Options::list()) -> http_response()

List of all channels in the team.

Options can be: exclude_archived: do not return archived channels (default: 0)

mark/3

mark(Token::string(), Channel::string(), Timestamp::string()) -> http_response()

Set read cursor in a channel.

rename/3

rename(Token::string(), Channel::string(), Name::string()) -> http_response()

Rename a channel.

set_purpose/3

set_purpose(Token::string(), Channel::string(), Purpose::string()) -> http_response()

Sets the purpose for a channel.

set_topic/3

set_topic(Token::string(), Channel::string(), Topic::string()) -> http_response()

Sets the topic for a channel.

unarchive/2

unarchive(Token::string(), Channel::string()) -> http_response()

Unarchives a channel.


Generated by EDoc, Feb 3 2016, 17:11:45.