XEP 0223¶
-
class
slixmpp.plugins.xep_0223.
XEP_0223
(xmpp, config=None)[source]¶ XEP-0223: Persistent Storage of Private Data via PubSub
-
configure
(node, ifrom=None, callback=None, timeout=None)[source]¶ Update a node’s configuration to match the public storage profile.
-
retrieve
(node, id=None, item_ids=None, ifrom=None, callback=None, timeout=None, timeout_callback=None)[source]¶ Retrieve private data via PEP.
This is just a (very) thin wrapper around the XEP-0060 publish() method to set the defaults expected by PEP.
- Parameters
node (
str
) – The node to retrieve content from.id (
Optional
[str
]) – Optionally specify the ID of the item.item_ids (
Optional
[List
[str
]]) – Specify a group of IDs. If id is also specified, it will be included in item_ids.ifrom (
Optional
[JID
]) – Specify the sender’s JID.timeout (
Optional
[int
]) – The length of time (in seconds) to wait for a response before exiting the send call if blocking is used. Defaults to slixmpp.xmlstream.RESPONSE_TIMEOUTcallback (
Optional
[Callable
]) – Optional reference to a stream handler function. Will be executed when a reply stanza is received.
-
store
(stanza, node=None, id=None, ifrom=None, options=None, callback=None, timeout=None, timeout_callback=None)[source]¶ Store private data via PEP.
This is just a (very) thin wrapper around the XEP-0060 publish() method to set the defaults expected by PEP.
- Parameters
stanza (
ElementBase
) – The private content to store.node (
Optional
[str
]) – The node to publish the content to. If not specified, the stanza’s namespace will be used.id (
Optional
[str
]) – Optionally specify the ID of the item.options (
Optional
[Form
]) – Publish options to use, which will be modified to fit the persistent storage option profile.
-