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-0.5.2 examples/hi_web/hi.rb
slack-ruby-client-0.5.1 examples/hi_web/hi.rb
slack-ruby-client-0.5.0 examples/hi_web/hi.rb
slack-ruby-client-0.4.0 examples/hi_web/hi.rb