API Method: POST room
Creates a new room for the authenticated account.
URL:
https://jaconda.im/api/rooms.#{format}
Formats:
xml, json
HTTP Method(s):
POST
Parameters:
Note that all parameters are encapsulated within a room array (see example)
jidRequired. The node part of Jaconda ID aka Jabber ID of the room you are creating (What is it?).titleOptional. The title of the room you are creating. This will be displayed in your friends' contact lists.is_publicOptional. Whether your room is public or private. Values can betruefor public andfalsefor private. Rooms are public by default.status_messageOptional. The status message of the room you are creating. This will be displayed in your friends' contact lists.greeting_textOptional. New people will be greeted with this text.
Usage examples:
cURL:
$ curl -u api_token:x -d "room[jid]=developers" https://jaconda.im/api/rooms.xml
Response:
XML example:
<?xml version="1.0" encoding="UTF-8"?>
<room>
<account-id type="integer">1</account-id>
<created-at type="datetime">2010-03-24T10:56:20Z</created-at>
<greeting-text>Hi, welcome to Developers. Type !help for a list of commands.</greeting-text>
<id type="integer">3</id>
<is-public type="boolean">true</is-public>
<jid>developers</jid>
<status-message>Available</status-message>
<title>Developers</title>
<updated-at type="datetime">2010-03-24T10:56:20Z</updated-at>
</room>