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