On Saturday, August 25, 2012 10:36:09 AM UTC-7, Alexander Popov wrote:
> I'm trying to authorize to Twitch.tv API using oauth2.
>
>
> I redirect user to login page (/kraken/oauth2/authorize), specifying callback. He returns to me with 'code' in parameters.. what should i do next?
> As far as i concern, i need to post this code somewhere and get oauth2 token but haven't found url in API documentation.
Are you specifying "?response_type=token" ? After authorizing, the user will be returned to you with an access_token (oauth token) in the document fragment (doc fragments are not sent to servers as part of the GET request, so you'll have to use JavaScript to check window.location and pull it out)