Class: Slack::Web::Client
- Inherits:
-
Object
- Object
- Slack::Web::Client
- Includes:
- Api::Endpoints, Api::Options, 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::Options
Methods included from Api::Endpoints::WorkflowsTriggersPermissions
#workflows_triggers_permissions_add, #workflows_triggers_permissions_list, #workflows_triggers_permissions_remove, #workflows_triggers_permissions_set
Methods included from Api::Endpoints::Workflows
#workflows_stepCompleted, #workflows_stepFailed, #workflows_updateStep
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::UsersDiscoverablecontacts
#users_discoverableContacts_lookup
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::ToolingTokens
Methods included from Api::Endpoints::TeamProfile
Methods included from Api::Endpoints::TeamPreferences
Methods included from Api::Endpoints::TeamExternalteams
#team_externalTeams_disconnect, #team_externalTeams_list
Methods included from Api::Endpoints::TeamBilling
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::OpenidConnect
#openid_connect_token, #openid_connect_userInfo
Methods included from Api::Endpoints::OauthV2
#oauth_v2_access, #oauth_v2_exchange
Methods included from Api::Endpoints::Oauth
Methods included from Api::Endpoints::Migration
Methods included from Api::Endpoints::FunctionsWorkflowsStepsResponses
#functions_workflows_steps_responses_export
Methods included from Api::Endpoints::FunctionsWorkflowsSteps
#functions_workflows_steps_list
Methods included from Api::Endpoints::FunctionsDistributionsPermissions
#functions_distributions_permissions_add, #functions_distributions_permissions_list, #functions_distributions_permissions_remove, #functions_distributions_permissions_set
Methods included from Api::Endpoints::Functions
#functions_completeError, #functions_completeSuccess
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_completeUploadExternal, #files_delete, #files_edit, #files_getUploadURLExternal, #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::ConversationsExternalinvitepermissions
#conversations_externalInvitePermissions_set
Methods included from Api::Endpoints::ConversationsCanvases
#conversations_canvases_create
Methods included from Api::Endpoints::Conversations
#conversations_acceptSharedInvite, #conversations_approveSharedInvite, #conversations_archive, #conversations_close, #conversations_create, #conversations_declineSharedInvite, #conversations_history, #conversations_info, #conversations_invite, #conversations_inviteShared, #conversations_join, #conversations_kick, #conversations_leave, #conversations_list, #conversations_listConnectInvites, #conversations_mark, #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::CanvasesSections
Methods included from Api::Endpoints::CanvasesAccess
#canvases_access_delete, #canvases_access_set
Methods included from Api::Endpoints::Canvases
#canvases_create, #canvases_delete, #canvases_edit
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::Bookmarks
#bookmarks_add, #bookmarks_edit, #bookmarks_list, #bookmarks_remove
Methods included from Api::Endpoints::AuthTeams
Methods included from Api::Endpoints::Auth
Methods included from Api::Endpoints::AppsManifest
#apps_manifest_create, #apps_manifest_delete, #apps_manifest_export, #apps_manifest_update, #apps_manifest_validate
Methods included from Api::Endpoints::AppsEventAuthorizations
#apps_event_authorizations_list
Methods included from Api::Endpoints::AppsDatastore
#apps_datastore_bulkDelete, #apps_datastore_bulkGet, #apps_datastore_bulkPut, #apps_datastore_count, #apps_datastore_delete, #apps_datastore_get, #apps_datastore_put, #apps_datastore_query, #apps_datastore_update
Methods included from Api::Endpoints::AppsConnections
Methods included from Api::Endpoints::AppsAuthExternal
#apps_auth_external_delete, #apps_auth_external_get
Methods included from Api::Endpoints::AppsActivities
Methods included from Api::Endpoints::Apps
Methods included from Api::Endpoints::AdminWorkflowsTriggersTypesPermissions
#admin_workflows_triggers_types_permissions_lookup, #admin_workflows_triggers_types_permissions_set
Methods included from Api::Endpoints::AdminWorkflowsPermissions
#admin_workflows_permissions_lookup
Methods included from Api::Endpoints::AdminWorkflowsCollaborators
#admin_workflows_collaborators_add, #admin_workflows_collaborators_remove
Methods included from Api::Endpoints::AdminWorkflows
#admin_workflows_search, #admin_workflows_unpublish
Methods included from Api::Endpoints::AdminUsersUnsupportedversions
#admin_users_unsupportedVersions_export
Methods included from Api::Endpoints::AdminUsersSession
#admin_users_session_clearSettings, #admin_users_session_getSettings, #admin_users_session_invalidate, #admin_users_session_list, #admin_users_session_reset, #admin_users_session_resetBulk, #admin_users_session_setSettings
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::AdminRoles
#admin_roles_addAssignments, #admin_roles_listAssignments, #admin_roles_removeAssignments
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::AdminFunctionsPermissions
#admin_functions_permissions_lookup, #admin_functions_permissions_set
Methods included from Api::Endpoints::AdminFunctions
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::AdminConversationsRestrictaccess
#admin_conversations_restrictAccess_addGroup, #admin_conversations_restrictAccess_listGroups, #admin_conversations_restrictAccess_removeGroup
Methods included from Api::Endpoints::AdminConversationsEkm
#admin_conversations_ekm_listOriginalConnectedChannelInfo
Methods included from Api::Endpoints::AdminConversations
#admin_conversations_archive, #admin_conversations_bulkArchive, #admin_conversations_bulkDelete, #admin_conversations_bulkMove, #admin_conversations_convertToPrivate, #admin_conversations_convertToPublic, #admin_conversations_create, #admin_conversations_delete, #admin_conversations_disconnectShared, #admin_conversations_getConversationPrefs, #admin_conversations_getCustomRetention, #admin_conversations_getTeams, #admin_conversations_invite, #admin_conversations_lookup, #admin_conversations_removeCustomRetention, #admin_conversations_rename, #admin_conversations_search, #admin_conversations_setConversationPrefs, #admin_conversations_setCustomRetention, #admin_conversations_setTeams, #admin_conversations_unarchive
Methods included from Api::Endpoints::AdminBarriers
#admin_barriers_create, #admin_barriers_delete, #admin_barriers_list, #admin_barriers_update
Methods included from Api::Endpoints::AdminAuthPolicy
#admin_auth_policy_assignEntities, #admin_auth_policy_getEntities, #admin_auth_policy_removeEntities
Methods included from Api::Endpoints::AdminAuditAnomalyAllow
#admin_audit_anomaly_allow_getItem, #admin_audit_anomaly_allow_updateItem
Methods included from Api::Endpoints::AdminAppsRestricted
Methods included from Api::Endpoints::AdminAppsRequests
#admin_apps_requests_cancel, #admin_apps_requests_list
Methods included from Api::Endpoints::AdminAppsConfig
#admin_apps_config_lookup, #admin_apps_config_set
Methods included from Api::Endpoints::AdminAppsApproved
Methods included from Api::Endpoints::AdminAppsActivities
Methods included from Api::Endpoints::AdminApps
#admin_apps_approve, #admin_apps_clearResolution, #admin_apps_restrict, #admin_apps_uninstall
Methods included from Api::Endpoints::AdminAnalytics
Methods included from Api::Mixins::Users
Methods included from Api::Mixins::Conversations
Methods included from Faraday::Request
Constructor Details
#initialize(options = {}) ⇒ Client
Returns a new instance of Client.
12 13 14 15 16 17 18 |
# File 'lib/slack/web/client.rb', line 12 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 |