Expand my Community achievements bar.

configure a room using server2server integration


Level 3


I'm able to create a room using lccs.php:


I see that the createRoom method accept a template name as the second paramater.

Is it possible to possible to create the template with php so we don't need any manual configuration?

For example to create a room that auto-promotes users.

What is the name of the collection I need to subscribe to receive users login and logouts?

Can I change user roles from my server?


1 Reply



Templates needs to be created from a running room that is correctly configured so you'll need to create your template either from DevConsole or DevPortal.

But for example in your case you'll have to do this only once, create a room without a template, set autoPromote=true in DevConsole and save it as a template (and in this case you shouldn't even need to have a Flex application to access the room). After that you can create all your rooms from your PHP code using this template.