Updated to support new API features.
The Boxcar API Gem
boxcar_api is an easy way to add Boxcar notifications to your application.
First, you'll need to create a provider here. We'll give you a provider key and a provider secret. Once you have those, you can get started:
provider = BoxcarAPI::Provider.new('your_key', 'your_secret')
Subscribe a Boxcar user to your service:
Then send that user a notification:
provider.notify("email@example.com", "Your product has shipped!")
You can also send a group of users a notification:
users = ["firstname.lastname@example.org", "email@example.com"] provider.batch_notify(users, "Your account has been upgraded.")
Or reach all of your subscribers with a broadcast:
provider.broadcast "Maintenance has begun. We expect to be back up 15 minutes."
Copyright (c) 2010 Boxcar. MIT Licensed.