Slack messages and file uploads API wrapper
This gem is NOT published to Ruby gems yet. But its intended to be used like this once distributed through RubyGems.com
gem "slacku"
and then, execute
bundle
client = Slacku::Api::Client.new("YOUR-ACCESS-TOKEN")
or
# config/initializers/slacku.rb
Slacku.configure do |config|
config.access_token = "YOUR-ACCESS-TOKEN"
end
This is how you post a simple text message to a Slack channel
params = { channel: "slack-channel-name", text: "howdy!" }
Slacku::Api::Messages.new.post_message(params)
🚧🚧🚧👷🏾♂️👷🏾♂️👷🏾♂️