module Jabber::PubSub::OAuthPubSubStreamHelper
Jabber::Stream helper that will transparently sign PubSub requests
Attributes
oauth_consumer[RW]
oauth_options[RW]
oauth_token[RW]
pubsubjid[RW]
Public Instance Methods
send_with_id(iq)
click to toggle source
enhanced send_with_id method that signs stanzas
Calls superclass method
# File lib/xmpp4r/pubsub/helper/oauth_service_helper.rb, line 8 def send_with_id(iq) if iq.first_element("pubsub") oauth = OAuthServiceHelper.create_oauth_node(self.jid, self.pubsubjid, self.oauth_consumer, self.oauth_token, self.oauth_options) iq.pubsub.add(oauth) end super(iq) end