| 123 Flash Chat Server has some server API, including two add room APIs. 1. Use a specific room id when creating a room 2. Use a specific room name instead of a room id. The system will create a room id automatically and send it back. The detailed are as follows: 1. Use a specific room id when creating a room If you want to use a specific room id, you must add an id in the command in following way: <Command group="default" api_pwd="3874-3459-9293-2194" type="add_room" name="abc" owner="ddd" desc="descsdf" max="200" id="1003"/> If it is successfully created, there will be a returning message as flollows: If the room id is already on the server, there will be a returning message as follows: So you may tell whether a room is created successfully by that. 2. Use a specific room name instead of a room id.If you'd rather room is created with a room name rather than a room id, then when creating a room dynamically, don't attatch ID in the command, as follows: If it is successfully created, there will be a returning message like this: ( the automatically created room id is 1003 in the following example ) And if it is not, there will be a message as follows: So you may get the ID of the newly-created room by the "result" value. The following is a php example of how to get the ID of a newly created room. Download Sample. |