If there's a new error type that is not yet known by this library, then it will raise Slack::Web::Api::Errors::SlackError. Rescue Slack:: Web:: Api:: Errors:: SlackError => e # capture all Slack errors end See UPGRADING when upgrading from an older version. Please see the documentation for the last stable release, v2.1.0 unless you're integrating with HEAD. You're reading the documentation for the next release of slack-ruby-client. To roll out a complete service using the Real Time Messaging API with Slack button integration to multiple teams, check out slack-ruby-bot-server, which is built on top of slack-ruby-bot, which uses this library.To build a bot using the Real Time Messaging API, use slack-ruby-bot, which uses this library.To respond to slash commands, interactive components or events, implement a web application using your favorite web framework and use this library to call the Slack Web API and to verify that events are coming from Slack.This library will let you send messages to Slack via the Web API, send and receive messages via the Real Time Messaging API and facilitate integration with the Events API.If you are not familiar with these concepts, you might want to watch this video. Comes with a handy command-line client, too. A Ruby client for the Slack Web, RealTime Messaging and Events APIs.
0 Comments
Leave a Reply. |