Class: Slack::Web::Client
- Inherits:
-
Object
- Object
- Slack::Web::Client
- Includes:
- Api::Endpoints, Faraday::Connection, Faraday::Request
- Defined in:
- lib/slack/web/client.rb
Constant Summary
Constants included from Api
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
Methods included from Api::Endpoints::Views
#views_open, #views_publish, #views_push, #views_update
Methods included from Api::Endpoints::UsersProfile
#users_profile_get, #users_profile_set
Methods included from Api::Endpoints::UsersPrefs
Methods included from Api::Endpoints::UsersAdmin
#users_admin_invite, #users_admin_setInactive
Methods included from Api::Endpoints::Users
#users_conversations, #users_deletePhoto, #users_getPresence, #users_identity, #users_info, #users_list, #users_lookupByEmail, #users_setActive, #users_setPhoto, #users_setPresence
Methods included from Api::Endpoints::UsergroupsUsers
#usergroups_users_list, #usergroups_users_update
Methods included from Api::Endpoints::Usergroups
#usergroups_create, #usergroups_disable, #usergroups_enable, #usergroups_list, #usergroups_update
Methods included from Api::Endpoints::TeamProfile
Methods included from Api::Endpoints::Team
#team_accessLogs, #team_billableInfo, #team_info, #team_integrationLogs
Methods included from Api::Endpoints::Stars
#stars_add, #stars_list, #stars_remove
Methods included from Api::Endpoints::Search
#search_all, #search_files, #search_messages
Methods included from Api::Endpoints::Rtm
Methods included from Api::Endpoints::Reminders
#reminders_add, #reminders_complete, #reminders_delete, #reminders_info, #reminders_list
Methods included from Api::Endpoints::Reactions
#reactions_add, #reactions_get, #reactions_list, #reactions_remove
Methods included from Api::Endpoints::Pins
#pins_add, #pins_list, #pins_remove
Methods included from Api::Endpoints::OauthV2
Methods included from Api::Endpoints::Oauth
Methods included from Api::Endpoints::Mpim
#mpim_close, #mpim_history, #mpim_list, #mpim_mark, #mpim_open, #mpim_replies
Methods included from Api::Endpoints::Migration
Methods included from Api::Endpoints::Im
#im_close, #im_history, #im_list, #im_mark, #im_open, #im_replies
Methods included from Api::Endpoints::Groups
#groups_archive, #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 Api::Endpoints::FilesRemote
#files_remote_add, #files_remote_info, #files_remote_list, #files_remote_remove, #files_remote_share, #files_remote_update
Methods included from Api::Endpoints::FilesComments
Methods included from Api::Endpoints::Files
#files_delete, #files_edit, #files_info, #files_list, #files_revokePublicURL, #files_share, #files_sharedPublicURL, #files_upload
Methods included from Api::Endpoints::Emoji
Methods included from Api::Endpoints::Dnd
#dnd_endDnd, #dnd_endSnooze, #dnd_info, #dnd_setSnooze, #dnd_teamInfo
Methods included from Api::Endpoints::Dialog
Methods included from Api::Endpoints::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 Api::Endpoints::ChatScheduledmessages
Methods included from Api::Endpoints::Chat
#chat_command, #chat_delete, #chat_deleteScheduledMessage, #chat_getPermalink, #chat_meMessage, #chat_postEphemeral, #chat_postMessage, #chat_scheduleMessage, #chat_unfurl, #chat_update
Methods included from Api::Endpoints::Channels
#channels_archive, #channels_create, #channels_delete, #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 Api::Endpoints::CallsParticipants
#calls_participants_add, #calls_participants_remove
Methods included from Api::Endpoints::Calls
#calls_add, #calls_end, #calls_info, #calls_update
Methods included from Api::Endpoints::Bots
Methods included from Api::Endpoints::Auth
Methods included from Api::Endpoints::AppsPermissionsUsers
#apps_permissions_users_list, #apps_permissions_users_request
Methods included from Api::Endpoints::AppsPermissionsScopes
Methods included from Api::Endpoints::AppsPermissionsResources
#apps_permissions_resources_list
Methods included from Api::Endpoints::AppsPermissions
#apps_permissions_info, #apps_permissions_request
Methods included from Api::Endpoints::Apps
Methods included from Api::Endpoints::AdminUsersSession
Methods included from Api::Endpoints::AdminUsers
#admin_users_assign, #admin_users_invite, #admin_users_list, #admin_users_remove, #admin_users_setAdmin, #admin_users_setExpiration, #admin_users_setOwner, #admin_users_setRegular
Methods included from Api::Endpoints::AdminUsergroups
#admin_usergroups_addChannels, #admin_usergroups_addTeams, #admin_usergroups_listChannels, #admin_usergroups_removeChannels
Methods included from Api::Endpoints::AdminTeamsSettings
#admin_teams_settings_info, #admin_teams_settings_setDefaultChannels, #admin_teams_settings_setDescription, #admin_teams_settings_setDiscoverability, #admin_teams_settings_setIcon, #admin_teams_settings_setName
Methods included from Api::Endpoints::AdminTeamsOwners
Methods included from Api::Endpoints::AdminTeamsAdmins
Methods included from Api::Endpoints::AdminTeams
#admin_teams_create, #admin_teams_list
Methods included from Api::Endpoints::AdminInviterequestsDenied
#admin_inviteRequests_denied_list
Methods included from Api::Endpoints::AdminInviterequestsApproved
#admin_inviteRequests_approved_list
Methods included from Api::Endpoints::AdminInviterequests
#admin_inviteRequests_approve, #admin_inviteRequests_deny, #admin_inviteRequests_list
Methods included from Api::Endpoints::AdminEmoji
#admin_emoji_add, #admin_emoji_addAlias, #admin_emoji_list, #admin_emoji_remove, #admin_emoji_rename
Methods included from Api::Endpoints::AdminConversationsWhitelist
#admin_conversations_whitelist_add, #admin_conversations_whitelist_listGroupsLinkedToChannel, #admin_conversations_whitelist_remove
Methods included from Api::Endpoints::AdminConversationsRestrictaccess
#admin_conversations_restrictAccess_addGroup, #admin_conversations_restrictAccess_listGroups, #admin_conversations_restrictAccess_removeGroup
Methods included from Api::Endpoints::AdminConversations
Methods included from Api::Endpoints::AdminAppsRestricted
Methods included from Api::Endpoints::AdminAppsRequests
Methods included from Api::Endpoints::AdminAppsApproved
Methods included from Api::Endpoints::AdminApps
#admin_apps_approve, #admin_apps_restrict
Methods included from Api::Mixins::Groups
Methods included from Api::Mixins::Users
Methods included from Api::Mixins::Channels
Methods included from Api::Mixins::Conversations
Methods included from Faraday::Request
Constructor Details
#initialize(options = {}) ⇒ Client
Returns a new instance of Client.
11 12 13 14 15 16 17 |
# File 'lib/slack/web/client.rb', line 11 def initialize( = {}) Slack::Web::Config::ATTRIBUTES.each do |key| send("#{key}=", .fetch(key, Slack::Web.config.send(key))) end @logger ||= Slack::Config.logger || Slack::Logger.default @token ||= Slack.config.token end |