Ruby-based Commandline REST API Wrapper

Hey guys,

I recently converted a large security mailing list from using Prosody to using Openfire. As I didn’t want to do the data entry myself, I wrote a quick Ruby-based Openfire REST API wrapper script to help all my fellow commandline junkies.

https://raw.githubusercontent.com/ryancmoon/scriptsaw/master/ruby/openfire_api_h elper.rb

Have a good one.

crash_

1 Like

Another Ruby based rest api client: GeneralScripting/openfire-ruby · GitHub

Nice client and library. This goes way past anything I wrote. I literally was just trying to interact with the REST API plugin via my command line and wrote a wrapper for it.

$(./openfire_api_helper.rb ADD_USER crash_ crash_@igniterealtime.org $(./pwGen.sh)) … literally.

vs spinning up a script, etc.