We use RealChat chat server ([url removed, login to view]) and need to use the RealChat API to add and remove chat rooms.
The API documentation is here:
[url removed, login to view]
We need your script to check if a certain chat room exists on the server and if not, to create it. If it does exist, to get the room id so that we can send the user there.
For example, we will have a user that wants to join the chat room "entertainment". Your script will need to check if there is a chat room called "entertainment". If there IS, your script should find the room ID so that we can load the chat room. If there is NOT, your script should CREATE the room, then get the room ID so we can load the chat room.
We also need a script to delete all empty chat rooms once per day (we can manage the cron).
Please read the RealChat API documentation and let me know if you have any questions.