API Method: PUT member
Updates the member's info.
Path:
/api/v2/members/#{user_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)
emailRequired. The email of the user.nameRequired. The name of the user. It will be displayed in the chat.jabber_idOptional. The Jabber ID of the user (What is it?).job_titleOptional. The job title of the user.locationOptional. The geographical location of the user.skype_idOptional. The Skype ID of the user.twitter_idOptional. The Twitter ID of the user.phoneOptional. The phone of the user.msn_idOptional. The MSN ID of the user.
Usage examples:
$ curl -u api_token:x -X PUT -d "user[name]=Michael" https://bigbang.jaconda.im/api/v2/members/36583.xml
Response:
<?xml version="1.0" encoding="UTF-8"?>
<user>
<created-at type="datetime">2011-02-25T15:49:03+05:00</created-at>
<email>client@gmail.com</email>
<id type="integer">36583</id>
<jabber-id>client@gmail.com</jabber-id>
<job-title nil="true"></job-title>
<kind>regular</kind>
<location nil="true"></location>
<msn-id nil="true"></msn-id>
<name>Michael</name>
<phone nil="true"></phone>
<skype-id nil="true"></skype-id>
<twitter-id nil="true"></twitter-id>
<updated-at type="datetime">2011-02-25T15:58:07+05:00</updated-at>
<photo-url>https://secure.gravatar.com/avatar/12399f315adaa4c4fcdfabaafc900c7a.png?d=mm&r=PG&s=80</photo-url>
</user>