Sha256: bca0a49509fdb10a31fd5ac7759a445bac1549f4b726a7725a39aa98e8395a7f

Contents?: true

Size: 293 Bytes

Versions: 24

Compression:

Stored size: 293 Bytes

Contents

require 'slack-ruby-client'

Slack.configure do |config|
  config.token = ENV['SLACK_API_TOKEN']
  fail '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

24 entries across 24 versions & 2 rubygems

Version Path
slack-ruby-client-bhe-0.5.5 examples/hi_web/hi.rb
slack-ruby-client-bhe-0.5.4 examples/hi_web/hi.rb
slack-ruby-client-0.10.0 examples/hi_web/hi.rb
slack-ruby-client-0.9.1 examples/hi_web/hi.rb
slack-ruby-client-0.9.0 examples/hi_web/hi.rb
slack-ruby-client-0.8.1 examples/hi_web/hi.rb
slack-ruby-client-0.8.0 examples/hi_web/hi.rb
slack-ruby-client-0.7.9 examples/hi_web/hi.rb
slack-ruby-client-0.7.8 examples/hi_web/hi.rb
slack-ruby-client-0.7.7 examples/hi_web/hi.rb
slack-ruby-client-0.7.6 examples/hi_web/hi.rb
slack-ruby-client-0.7.5 examples/hi_web/hi.rb
slack-ruby-client-0.7.4 examples/hi_web/hi.rb
slack-ruby-client-0.7.3 examples/hi_web/hi.rb
slack-ruby-client-0.7.2 examples/hi_web/hi.rb
slack-ruby-client-0.7.1 examples/hi_web/hi.rb
slack-ruby-client-0.7.0 examples/hi_web/hi.rb
slack-ruby-client-0.6.0 examples/hi_web/hi.rb
slack-ruby-client-0.5.4 examples/hi_web/hi.rb
slack-ruby-client-0.5.3 examples/hi_web/hi.rb