Account/whoami

From Justin.tv API Wiki

Jump to: navigation, search

Image:Ambox_notice.png Are you building an app that connects with Twitch? Use the Twitch API Instead!

Request must be signed with valid OAuth tokens for a channel. Returns information about user whose token and secret is used to sign the request. Developers who are creating users with the REST API can use the token and secret returned by the create request to sign this request.

Interface

URL: http://api.justin.tv/api/account/whoami.format
Formats: xml, json
Methods: GET
Params: None.
Returns: User Object

Examples

 {
   "image_url_huge": "http:\/\/static-cdn.justin.tv\/jtv_user_pictures\/justin-320x240-4.jpg",
   "profile_header_border_color": null,
   "favorite_quotes": "I love Justin.tv",
   "sex": "Male",
   "image_url_large": "http:\/\/static-cdn.justin.tv\/jtv_user_pictures\/justin-125x94-4.jpg",
   "profile_about": "Check out my website:\n\nwww.justin.tv\n",
   "profile_background_color": null,
   "image_url_medium": "http:\/\/static-cdn.justin.tv\/jtv_user_pictures\/justin-75x56-4.jpg",
   "id": 1698,
   "broadcaster": true,
   "profile_url": "http:\/\/www.justin.tv\/justin\/profile",
   "profile_link_color": null,
   "image_url_small": "http:\/\/static-cdn.justin.tv\/jtv_user_pictures\/justin-50x37-4.jpg",
   "profile_header_text_color": null,
   "name": "The JUST UN",
   "image_url_tiny": "http:\/\/static-cdn.justin.tv\/jtv_user_pictures\/justin-33x25-4.jpg",
   "login": "justin",
   "profile_header_bg_color": null,
   "location": "San Francisco"
 }
Client Libraries