Sha256: e017b387abc48a73f759b710f4530b4bdafadceb6541cb0fbea2715ab7139071

Contents?: true

Size: 294 Bytes

Versions: 10

Compression:

Stored size: 294 Bytes

Contents

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

10 entries across 10 versions & 1 rubygems

Version Path
slack-ruby-client-0.14.4 examples/hi_web/hi.rb
slack-ruby-client-0.14.3 examples/hi_web/hi.rb
slack-ruby-client-0.14.2 examples/hi_web/hi.rb
slack-ruby-client-0.14.1 examples/hi_web/hi.rb
slack-ruby-client-0.14.0 examples/hi_web/hi.rb
slack-ruby-client-0.13.1 examples/hi_web/hi.rb
slack-ruby-client-0.13.0 examples/hi_web/hi.rb
slack-ruby-client-0.12.0 examples/hi_web/hi.rb
slack-ruby-client-0.11.1 examples/hi_web/hi.rb
slack-ruby-client-0.11.0 examples/hi_web/hi.rb