Git Product home page Git Product logo

ruby-prowl's Introduction

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", ...)

ruby-prowl's People

Contributors

augustl avatar tofumatt avatar andruby avatar cj123 avatar oleander avatar

Stargazers

H avatar Joseph Jaramillo avatar  avatar Angus H. avatar  avatar Daniël Zwijnenburg avatar Samer Abdel-Hafez avatar  avatar Ryan Eby avatar Marc Ransome avatar Chauncey Garrett avatar  avatar Philip avatar James Hart avatar Sébastien LOUIS avatar Kieran Klaassen avatar Patrick Cunningham avatar Calle Wolff avatar Richard Wöber avatar  avatar Boris Bügling avatar  avatar Joseph Ridgway avatar John Jansen avatar  avatar Serg Podtynnyi avatar Shaun Meredith avatar Tomas Markauskas avatar Dennis Meise avatar Mark Rada avatar Martin Linkhorst avatar Andrew McElroy avatar Geoff Evans avatar Tim Novinger avatar Jon Stenqvist avatar Tim Schneider avatar Mars Hall avatar Can Duruk avatar Fredrik Bränström avatar Torsten Curdt avatar TANAKA, Koutarou avatar Jay Levitt avatar Al Chou avatar Ilya Grigorik avatar  avatar Mike Green avatar Yunjie Dai avatar Kang-min Liu avatar Wen-Tien Chang avatar Julian J. Schrader avatar Karl Smith avatar Jason Lee avatar Oliver Kiessler avatar Dennis Martinez avatar Patrick Detlefsen avatar Eloy Durán avatar Sebastian Munz avatar Leon Ho avatar Gustavo Barron avatar  avatar Felipe Coury avatar Andrew Nesbitt avatar Caius Durling avatar Darcy Laycock avatar Eric Lindvall avatar  avatar H Choroomi avatar Edward Muller avatar

Watchers

 avatar James Cloos avatar  avatar  avatar

ruby-prowl's Issues

undefined method "add"

I just installed the prowl gem from the github gem and im currently testing it out and getting the following error:

undefined method `add' for #Prowl:0xae56def8 (NoMethodError)

I tired using both methods:
p = Prowl.new(:apikey => "apikey",:application => "blah")
p.add(:event => "test",:description => "blah",:priority => 1)

and just using:
Prowl.add(:apikey => "apikey",:application => "blah",:event => "test",:description => "blah",:priority => 1)

Bump the version number please

The version number wasn't changed after the last commit (a merged pull request).
That commit updated the API URL but as the version number wasn't changed bundle won't see the changes and pull down the latest version.

My rails app is set to use 0.1.3 but still has the old version - which tries to use the old endpoint.

  API_URL = "https://prowl.weks.net:443/publicapi"

That URL has recently stopped working which is causing my application to fail.

As I understand it the only other workaround for me is to fork the repo, bump the version number myself then tell Bundler to use that version.
Or you could bump the version number, it should be a really quick fix and would really help me out of a tight spot.

Thanks in advance, Darren.

400 error

while testing in IRB I always get a returned 400 msg although my apikey is correct and so is everything else.

using the ruby installation that comes with OSX Snow Leopard 1.8.7

undefined method "add"

I just installed the prowl gem from the github gem and im currently testing it out and getting the following error:

undefined method `add' for #Prowl:0xae56def8 (NoMethodError)

I tired using both methods:
p = Prowl.new(:apikey => "apikey",:application => "blah")
p.add(:event => "test",:description => "blah",:priority => 1)

and just using:
Prowl.add(:apikey => "apikey",:application => "blah",:event => "test",:description => "blah",:priority => 1)

currently using ruby 1.8.5

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.