Permalink
Browse files

used new urls for prowl

added new url parameter for linking directly to the changes
  • Loading branch information...
sabberworm committed Mar 20, 2011
1 parent b5745da commit 16c3215e352dc872600ffc6933af012be5c954c7
Showing with 4 additions and 4 deletions.
  1. +2 −2 docs/prowl
  2. +2 −2 services/prowl.rb
View
@@ -3,12 +3,12 @@ Prowl
Prowl is an iPhone App+Web Service for arbitrary Push Notifications. After installing the app and registering the device, you receive an API key and can send notifications from your computer via Growl (with the Prowl GrowlStyle installed) or from any server with very little work (at least as far as the Push submission is concerned).
To get started, create a user account for Prowl at http://prowl.weks.net/.
To get started, create a user account for Prowl at https://www.prowlapp.com/.
Install Notes
-------------
1. apikey is your API key supplied from the Prowl website at https://prowl.weks.net/settings.php
1. Create a new API key for GitHub at the Prowl website https://www.prowlapp.com/api_settings.php.
Developer Notes
---------------
View
@@ -1,5 +1,5 @@
service :prowl do |data, payload|
url = URI.parse('https://prowl.weks.net/publicapi/add')
url = URI.parse('https://api.prowlapp.com/publicapi/add')
repository = payload['repository']['url'].split("/")
event = repository[-2], "/", repository[-1]
application = "GitHub"
@@ -9,7 +9,7 @@
#{payload['commits'][-1]['id'][0..7]} #{payload['commits'][-1]['message']}"
req = Net::HTTP::Post.new(url.path)
req.set_form_data('apikey' => data['apikey'], 'application' => application, 'event' => event, 'description' => description)
req.set_form_data('apikey' => data['apikey'], 'application' => application, 'event' => event, 'description' => description, 'url' => payload['compare'])
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true if url.port == 443 || url.instance_of?(URI::HTTPS)

0 comments on commit 16c3215

Please sign in to comment.