Register a new User, Update Friend List

Hi all, i’m new to OpenFire. I already have a working installation and i need to integrate the Chat with a Web Application.** I have two requirements:**

- register a new user in OpenFire

- update the friend list for a user in OpenFire

I need to do both dynamically, so a backend wouldn’t help for the implementation. Could you point me in the right direction regarding the docs, for looking into these requirements?

Thanks in advance

best regards

Fernando Gabrieli