Sha256: 3d70272a6ce1880ffe596ac267c86dc3e8138c12e6bd428a208a7d3b1b18775b

Contents?: true

Size: 324 Bytes

Versions: 13

Compression:

Stored size: 324 Bytes

Contents

# frozen_string_literal: true
require 'slack-ruby-client'

Slack.configure do |config|
  config.token = ENV['SLACK_API_TOKEN']
  raise 'Missing ENV[SLACK_API_TOKEN]!' unless config.token
end

client = Slack::Web::Client.new

client.auth_test

client.chat_postMessage(channel: '#general', text: 'Hello World', as_user: true)

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
slack-ruby-client-2.4.0 examples/hi_web/hi.rb
slack-ruby-client-2.3.0 examples/hi_web/hi.rb
slack-ruby-client-2.2.0 examples/hi_web/hi.rb
slack-ruby-client-2.1.0 examples/hi_web/hi.rb
slack-ruby-client-2.0.0 examples/hi_web/hi.rb
slack-ruby-client-1.1.0 examples/hi_web/hi.rb
slack-ruby-client-1.0.0 examples/hi_web/hi.rb
slack-ruby-client-0.17.0 examples/hi_web/hi.rb
slack-ruby-client-0.16.0 examples/hi_web/hi.rb
slack-ruby-client-0.15.1 examples/hi_web/hi.rb
slack-ruby-client-0.15.0 examples/hi_web/hi.rb
slack-ruby-client-0.14.6 examples/hi_web/hi.rb
slack-ruby-client-0.14.5 examples/hi_web/hi.rb