Thanks in advance for any help with this. I had Openfire 3.9.3, but needed to upgrade to 3.10.2, and will probably continue to keep the Openfire installation up to date. I had a series of scripts to create http requests using the UserService plugin, but that no longer works with the new version of Openfire. So, I installed the RESTapi plugin, enabled the service and added a secret key. According to the documentation, I should be able to do much the same with RestApi that I did with the UserService, but I get no return data or status from sending the HTTP request. I’m using a simple lynx like line browser, elinks, because that’s what is available on this Redhat installation. Here is my example elinks command:
elinks -source 'http://10.1.10.15:9090/plugins/restapi/userservice?type=add&secret=SecretPass&username='$user'&password='$pass'&groups='$grup'&name='$frst' '$last'&email='$mail
I also do not get any status errors from the command, so I have to believe it is at least contacting the server. I am following the documentation here:
at first I would recommend you, not to use the deprecated part of userservice inside of rest api.
But nevertheless I guess you need just enable the REST API and set the Authentication to Secret in the Web Openfire Admin Interface (Server Settings > Rest API).
Running this command returned no response, and the status (error) value was 0 (meaning no error). I was expecting a , like the userservice calls, but got nothing.