Sha256: dbcdd56f398dce18eddeb34cce8472b5bd3876bd976cc3941ba10cb8bf5b0363

Contents?: true

Size: 1.72 KB

Versions: 4

Compression:

Stored size: 1.72 KB

Contents

[![Build Status](https://travis-ci.org/Notifiee/notifiee-ruby.svg?branch=master)](https://travis-ci.org/Notifiee/notifiee-ruby)
[![Gem Version](https://badge.fury.io/rb/notifiee-ruby.svg)](https://badge.fury.io/rb/notifiee-ruby)
# Notifiee

The Notifiee gem allows Ruby developers to programmatically send notifications to team members (via multiple channels like Email, SMS, Telegram, Slack, Messenger, and Twitter DMs) through the [Notifiee](https://notifiee.com) web service. The API is implemented as JSON over HTTP.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'notifiee'
```

then bundle:

    $ bundle

Or install globally:

    $ gem install notifiee

## Usage

First configure your API client:

```ruby
NotifieeAPI::Client.api_key = "YOUR_API_KEY"
```

In Rails projects this should go in a notifiee initializer and the API key should probably be set with an ENV variable:

```ruby
# config/initializers/notifiee.rb

NotifieeAPI::Client.api_key = ENV["YOUR_API_KEY"]
```

Your API key is associated with a project created within the [notifiee.com](https://notifiee.com) web interface. To get an API key you will need to sign up.

Once the configuration is set you can send notifications in your code like this:

```ruby
NotifieeAPI.notify(:bob, [:telegram], 'Something happened in our app!')

# or with a subject
NotifieeAPI.notify(:bob, [:telegram], 'Something happened in our app!', subject: 'Our App Notification')
```

NOTE: `:bob` is a notifiee that you would have had to have created from within the [notifiee.com](https://notifiee.com) web interface and configured the Telegram channel for.

## License

The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
notifiee-ruby-1.0.5 README.md
notifiee-ruby-1.0.4 README.md
notifiee-ruby-1.0.3 README.md
notifiee-ruby-1.0.2 README.md