Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

augustl/ruby-prowl

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 

Prowl

Ruby wrapper for Prowl.

About

Prowl rocks! It's a webapp and a iPhone app that works
together and lets you send push notifications via HTTP
to any iPhone that has the prowl app installed.

Prowl.add(
  :apikey => "api key abc123def456",
  :application => "World Saving Project Manager",
  :event => "Canceled",
  :description => "It sucked, so I canceled it. Sorry :("
)

The user has given you its API key. That lets you
send push notifications to the users iPhone, through
the Prowl iPhone app.

Installation

gem install prowl

Code available here.

Notice

Prowl.send has been renamed to Prowl.add.

Usage

Four required parameters:

  • apikey (String / Array< String >)
  • application (String)
  • event (String)
  • description (String)

You can use Prowl.add, or create instances of Prowl manually.

Prowl.add(:apikey => "123abc", :application => "Foo", ...)
Prowl.verify("apikey")

p = Prowl.new(:apikey => "apikey123abc", :application => "FooApp")
p.valid?
p.add(:event => "It's valid", ...)