API for subscriptions

16 views
Skip to first unread message

Quest

unread,
May 15, 2013, 4:25:26 AM5/15/13
to Prosody IM Users
Hey there,

I got the responsibility for developing new features in an ~ 500
people esports community.
One of my first steps will be to setup a prosody server with external
authentication using the members database of the community.

But because the community already has a kind of friendlist I'd like to
do here a deeper integration into prosody.
Is there any kind of API to modifiy subscriptions of users on the same
domain without authenticating as this user before?

What I'd like to do is:
Automatically create subscription ('both') in XMPP after connecting as
friends on homepage
1-time-a-day sync back friendlist of XMPP to homepage (friends from
community domain only)
Also removal of subscriptions in both directions

The only way I found to manage this is to edit the roster files
directly and to restart the daemon afterwards.
Do you have a better idea how I could manage this?
Reply all
Reply to author
Forward
0 new messages