Skip to content

Latest commit

 

History

History
136 lines (92 loc) · 2.64 KB

actions-list.md

File metadata and controls

136 lines (92 loc) · 2.64 KB

Available Actions for Basic Usage

api.test

Slack Documentation

Constant: \DZunke\SlackBundle\Slack\Client::ACTION_API_TEST

Available Parameters:

protected $parameter = [];

auth.test

Slack Documentation

Constant: \DZunke\SlackBundle\Slack\Client::ACTION_AUTH_TEST

Available Parameters:

protected $parameter = [];

channels.info

Slack Documentation

Constant: \DZunke\SlackBundle\Slack\Client::ACTION_CHANNELS_INFO

Available Parameters:

protected $parameter = [
   'channel' => null
];

channels.invite

Slack Documentation

Constant: \DZunke\SlackBundle\Slack\Client::ACTION_CHANNELS_INVITE

Available Parameters:

Both Parameters have to be the if of the entity and not the raw name

protected $parameter = [
   'channel' => null,
   'user' => null,
];

channels.list

Slack Documentation

Constant: \DZunke\SlackBundle\Slack\Client::ACTION_CHANNELS_LIST

Available Parameters:

protected $parameter = [
    'exclude_archived' => 1
];

channels.setTopic

Slack Documentation

Constant: \DZunke\SlackBundle\Slack\Client::ACTION_CHANNELS_SET_TOPIC

Available Parameters:

protected $parameter = [
   'channel' => null,
   'topic'   => null
];

chat.postMessage

Slack Documentation

Constant: \DZunke\SlackBundle\Slack\Client::ACTION_POST_MESSAGE

Available Parameters:

protected $parameter = [
    'identity'     => null,     # Object of Class \DZunke\SlackBundle\Slack\Messaging\Identity
    'channel'      => null,
    'text'         => null,
    'icon_url'     => null,
    'icon_emoji'   => null,
    'parse'        => 'full',
    'link_names'   => 1,
    'unfurl_links' => 1,
    'attachments'  => []
];

files.upload

Slack Documentation

Constant: \DZunke\SlackBundle\Slack\Client::ACTION_FILES_UPLOAD

protected $parameter = [
    'content'         => null,
    'filetype'        => null,
    'filename'        => null,
    'title'           => null,
    'initial_comment' => null,
    'channels'        => null   # If no Channel is given the File will be private to the API-User
];

users.list

Slack Documentation

Constant: \DZunke\SlackBundle\Slack\Client::ACTION_USERS_LIST

protected $parameter = [
    'presence' => 1
];