User/update

From Justin.tv API Wiki

Jump to: navigation, search

Updates an existing user. This call requires OAuth authentication for the target user.

Interface

URL: http://api.justin.tv/api/user/update.format
Formats: xml, json
Methods: POST, PUT
Authentication: Requires Authentication
Params: POST body must include any parameters to update. Users can be upgraded to channels with this method by setting broadcaster=true. In order to upload a picture, set the content header 'multipart/form-data' and send a valid jpg, png or gif in the profile_image param.
Returns: User Object

Examples

  • You are broadcaster "justin" and want to change your name
    • Action
      • url = http://api.justin.tv/api/user/update.xml
      • method = POST
    • Parameters
      • name = JUSTIN!!!
<user>
 <broadcaster>true</broadcaster>
 <id>1698</id>
 <login>justin</login>
 <name>JUSTIN!!!</name>
 <profile_about>justin.tv
 </profile_about>
 <favorite_quotes nil="true"></favorite_quotes>
 <location nil="true"></location>
 <sex>Male</sex>
 <profile_background_color nil="true"></profile_background_color>
 <profile_link_color nil="true"></profile_link_color>
 <profile_header_text_color nil="true"></profile_header_text_color>
 <profile_header_bg_color nil="true"></profile_header_bg_color>
 <profile_header_border_color nil="true"></profile_header_border_color>
 <profile_url>http://www.justin.tv/justin/profile</profile_url>
 <image_url_huge>http://static-cdn.justin.tv/jtv_user_pictures/justin-320x240-1.jpg</image_url_huge>
 <image_url_large>http://static-cdn.justin.tv/jtv_user_pictures/justin-125x94-1.jpg</image_url_large>
 <image_url_medium>http://static-cdn.justin.tv/jtv_user_pictures/justin-75x56-1.jpg</image_url_medium>
 <image_url_small>http://static-cdn.justin.tv/jtv_user_pictures/justin-50x37-1.jpg</image_url_small>
 <image_url_tiny>http://static-cdn.justin.tv/jtv_user_pictures/justin-33x25-1.jpg</image_url_tiny>
</user>
Client Libraries