Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

heroku_notification

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

heroku_notification

  • 0.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

HerokuNotification

HerokuNotification provides an easy way of interfacing with the Heroku Notifications API.

Usage

The Notifications API requires a subject, text, and details of who or what you want to send the message to:

HerokuNotification.post(:subject => "Will you be my valentine?",
                        :text => "Please help be support rampant consumerism.",
                        :to => @user)

Alternatively you can explicitly provie the recipient type and id:

HerokuNotification.post(:subject => "Will you be my valentine?",
                        :text => "Please help be support rampant consumerism.",
                        :to => "user",
                        :id => 1)

Include any additional parameters (e.g., :html) and they will be sent along also.

Why would I want to use this?

Because you're too lazy to read the API docs for the main notifications service, or you don't want to have to keep up with any API changes*. Both are perfectly valid, and not mutually exclusive.

*I'll keep this client gem in line with the currently deployed API, while making every effort to maintain backward compatibility in the gem.

Compatibility

Test suite has currently only been confirmed on the following platforms:

  • MRI Ruby 1.9.2

Contributions

Patches gladly accepted. Please fork this repo, add a relevant test, and send me a pull request.

FAQs

Package last updated on 28 Mar 2011

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc