How can i get the online user list?

i want to make a script file geting onlien-user- list from openfire.

i used curl to logined admin_console to get this.

but i dont want to use this method.

can i tell me other ways?

thank all.