Class: Slack::API

Inherits:
Object
  • Object
show all
Includes:
Connection, Endpoint, Request
Defined in:
lib/slack/api.rb

Direct Known Subclasses

Client

Instance Method Summary collapse

Methods included from Endpoint::Users

#users_deletePhoto, #users_getPresence, #users_identity, #users_info, #users_list, #users_lookupByEmail, #users_profile_get, #users_profile_set, #users_setActive, #users_setPhoto, #users_setPresence

Methods included from Endpoint::Usergroups

#usergroups_create, #usergroups_disable, #usergroups_enable, #usergroups_list, #usergroups_update, #usergroups_users_list, #usergroups_users_update

Methods included from Endpoint::Team

#team_accessLogs, #team_billableInfo, #team_info, #team_integrationLogs, #team_profile_get

Methods included from Endpoint::Stars

#stars_add, #stars_list, #stars_remove

Methods included from Endpoint::Search

#search_all, #search_files, #search_messages

Methods included from Endpoint::Reminders

#reminders_add, #reminders_complete, #reminders_delete, #reminders_info, #reminders_list

Methods included from Endpoint::Reactions

#reactions_add, #reactions_get, #reactions_list, #reactions_remove

Methods included from Endpoint::Presence

#presence_set

Methods included from Endpoint::Pins

#pins_add, #pins_list, #pins_remove

Methods included from Endpoint::Oauth

#oauth_access, #oauth_token

Methods included from Endpoint::Mpim

#mpim_close, #mpim_history, #mpim_list, #mpim_mark, #mpim_open, #mpim_replies

Methods included from Endpoint::Migration

#migration_exchange

Methods included from Endpoint::Im

#im_close, #im_history, #im_list, #im_mark, #im_open, #im_replies

Methods included from Endpoint::Idpgroups

#idpgroups_list

Methods included from Endpoint::Groups

#groups_archive, #groups_close, #groups_create, #groups_createChild, #groups_history, #groups_info, #groups_invite, #groups_kick, #groups_leave, #groups_list, #groups_mark, #groups_open, #groups_rename, #groups_replies, #groups_setPurpose, #groups_setTopic, #groups_unarchive

Methods included from Endpoint::Files

#files_comments_add, #files_comments_delete, #files_comments_edit, #files_delete, #files_info, #files_list, #files_revokePublicURL, #files_sharedPublicURL, #files_startPartialUpload, #files_upload

Methods included from Endpoint::Emoji

#emoji_list

Methods included from Endpoint::Dnd

#dnd_endDnd, #dnd_endSnooze, #dnd_info, #dnd_setSnooze, #dnd_teamInfo

Methods included from Endpoint::Discovery

#discovery_file_restore, #discovery_file_tombstone

Methods included from Endpoint::Dialog

#dialog_open

Methods included from Endpoint::Conversations

#conversations_archive, #conversations_close, #conversations_create, #conversations_history, #conversations_info, #conversations_invite, #conversations_join, #conversations_kick, #conversations_leave, #conversations_list, #conversations_members, #conversations_open, #conversations_rename, #conversations_replies, #conversations_setPurpose, #conversations_setTopic, #conversations_unarchive

Methods included from Endpoint::Chat

#chat_delete, #chat_getPermalink, #chat_meMessage, #chat_postEphemeral, #chat_postMessage, #chat_unfurl, #chat_update

Methods included from Endpoint::Channels

#channels_archive, #channels_create, #channels_history, #channels_info, #channels_invite, #channels_join, #channels_kick, #channels_leave, #channels_list, #channels_mark, #channels_rename, #channels_replies, #channels_setPurpose, #channels_setTopic, #channels_unarchive

Methods included from Endpoint::Bots

#bots_info

Methods included from Endpoint::Auth

#auth_revoke, #auth_test

Methods included from Endpoint::Apps

#apps_permissions_info, #apps_permissions_request

Methods included from Endpoint::Api

#api_test

Methods included from Request

#delete, #get, #post, #put

Constructor Details

#initialize(options = {}) ⇒ API

Creates a new API



14
15
16
17
18
19
# File 'lib/slack/api.rb', line 14

def initialize(options={})
  options = Slack.options.merge(options)
  Configuration::VALID_OPTIONS_KEYS.each do |key|
    send("#{key}=", options[key])
  end
end

Instance Method Details

#realtimeObject



25
26
27
# File 'lib/slack/api.rb', line 25

def realtime
  RealTime::Client.new(post("rtm.start"))
end