Permalink
Browse files

pull from zh

  • Loading branch information...
1 parent 2782a3e commit 125707e211b0a3cb6462ea405bb77aefb1618f8b Julio Capote committed Jun 10, 2009
Showing with 3 additions and 2 deletions.
  1. +1 −0 .gems
  2. +2 −2 example.rb → postbin.rb
View
1 .gems
@@ -0,0 +1 @@
+httpclient
@@ -7,9 +7,9 @@
id = JSON.parse(resp)["id"]
puts "adding subscriber to channel #{id}"
-resp = RestClient.post 'http://localhost:4567/subscribers', :data => { :channel => id, :url => 'http://localhost:8080/test-handler' }.to_json
+resp = RestClient.post 'http://localhost:4567/subscribers', :data => { :channel => id, :url => ARGV[0] }.to_json
puts resp
puts "posting message to #{id}"
-resp = RestClient.post 'http://localhost:4567/messages', :data => { :channel => id, :message => 'HAYYYY' }.to_json
+resp = RestClient.post 'http://localhost:4567/messages', :data => { :channel => id, :message => 'HAYYY' }.to_json
puts resp

0 comments on commit 125707e

Please sign in to comment.