Home > Products > 123 Flash Chat > Add Room API of 123 Flash Chat Server Software
Flash Chat Server Software

Add Room API of 123 flash chat server software

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.

 

TOPCMM News
24 Hours Support
+86-21-51785636 (China)
+1-858-866-9362 (USA)
Mailing List

For news, update and promotion of TOPCMM.


Home | About | Products | Download | FAQ | Order | Support | Features | Reviews | Demo | Links | Sitemap | Forum | Blog

Flash Chat | Java Chat Server| Chat Server Software| Instant Messaging Software| Live Help Chat
Webcam Chat | Web Chat Room| Enterprise Messaging| Enterprise Chat Software| Flash Chat in China
Legal Disclaimer| Privacy Statement | Terms of Use    Copyright © 2001-2008 TopCMM Software Corp. All Rights Reserved.