Quantcast
Channel: Ignite Realtime : Unanswered Discussions - Support
Viewing all articles
Browse latest Browse all 4979

Upgrading from UserService to RESTApi

$
0
0

All,

 

    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:
http://www.igniterealtime.org/projects/openfire/plugins/restapi/readme.html#using-the-plugin

   So, any suggestions?

  - David

Viewing all articles
Browse latest Browse all 4979

Trending Articles