Created
May 5, 2010 16:52
-
-
Save superfeedr/391081 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rubygems" | |
require File.join(File.dirname(__FILE__), '..', "lib", "bosh") | |
Bosh.logger { |message| | |
puts message | |
} | |
@connection = Bosh.connect("[email protected]", "xxx", "http://beta.superfeedr.com/http-bind/") | |
pslist = <<-EOXML | |
<iq to='firehoser.superfeedr.com' type='get' id='3962:list' xmlns='jabber:client'> | |
<pubsub xmlns='http://jabber.org/protocol/pubsub' xmlns:superfeedr='http://superfeedr.com/xmpp-pubsub-ext'> | |
<subscriptions jid='[email protected]/bosh_756' page='1'/> | |
</pubsub> | |
</iq> | |
EOXML | |
result = @connection.send(Nokogiri::XML::Document.parse(pslist)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment