API Method: PUT user
Updates the user identified by its integer id. Must be in the
room.
URL:
https://jaconda.im/api/rooms/#{room_id}/users/#{id}.#{format}
Formats:
xml, json
HTTP Method(s):
PUT, POST (with the added parameter _method=PUT)
Parameters:
Note that all parameters are encapsulated within a user array (see example)
nameOptional. The name of the user. This will be displayed in the chat.
Usage examples:
cURL:
$ curl -u api_token:x -X PUT -d "user[name]=Boss" https://jaconda.im/api/rooms/1/users/5134.xml
Response:
XML example:
<?xml version="1.0" encoding="UTF-8"?>
<user>
<created-at type="datetime">2010-02-23T06:54:54Z</created-at>
<id type="integer">5134</id>
<is-paused type="boolean">false</is-paused>
<jid>client@gmail.com</jid>
<name>Boss</name>
<paused-till type="datetime" nil="true"></paused-till>
<room-id type="integer">1</room-id>
<status nil="true"></status>
<updated-at type="datetime">2010-02-23T06:54:54Z</updated-at>
</user>