| Module | Jabber::PubSub::OAuthPubSubStreamHelper |
| In: |
lib/xmpp4r/pubsub/helper/oauth_service_helper.rb
|
Jabber::Stream helper that will transparently sign PubSub requests
| oauth_consumer | [RW] | |
| oauth_options | [RW] | |
| oauth_token | [RW] | |
| pubsubjid | [RW] |
enhanced send_with_id method that signs stanzas
# File lib/xmpp4r/pubsub/helper/oauth_service_helper.rb, line 8
8: def send_with_id(iq)
9: if iq.first_element("pubsub")
10: oauth = OAuthServiceHelper.create_oauth_node(self.jid, self.pubsubjid, self.oauth_consumer, self.oauth_token, self.oauth_options)
11: iq.pubsub.add(oauth)
12: end
13:
14: super(iq)
15: end