pubsub/node/affiliations: nodes subscriptions management¶
subscriptions is a subcommand handling the subscription to a node.
Those commands can only be used by an owner of the node.
Retrieve subscriptions to a node.
--public is used, only public subscriptions are retrieved (if target service
supports XEP-0465 Public Pubsub Subscriptions). Public subscriptions are accessible to
anybody, thus you can use this on a node even if you are not an owner of it (and thus
would not normally be allowed to retrieve subscriptions).
Get subscription from
$ li pubsub node subscriptions get -n some_node
Retrieve public subscribers to the blog of Louise:
$ li pubsub node subscriptions get --public -s email@example.com -n urn:xmpp:microblog:0
Set subscriptions to a node. Subscriptions are specified with
-S JID [SUSBSCRIPTION]
[JID [SUSBSCRIPTION] ...], --subscription JID [SUSBSCRIPTION] [JID [SUSBSCRIPTION] ...]
JID is the jid of the entity to change subscription state, and
is a subscription state (on of
none) as specified in
XEP-0060 Subscription State. If
SUBSCRIPTION is not specified, it default to
Subscribe Louise with her new address at
firstname.lastname@example.org and remove her
subscription from old
$ li pubsub node subscriptions set -n some_node -S email@example.com subscribed firstname.lastname@example.org none