N
N
nicklayk2014-05-03 01:29:49
In contact with
nicklayk, 2014-05-03 01:29:49

Windows phone pull access token?

I wanted to play a little with vk api, I'm trying to go through authorization and pull out a token.
I am using standalone app. I follow the link, everything is successful and it redirects me to https://oauth.vk.com/blank.html. When I go through the browser on a PC, I see the token and other parameters.
The problem is that when I navigate using the WebBrowser element, only https://oauth.vk.com/blank.html appears in the Source. How to get a link of a normal type, like: https://oauth.vk.com/blank.html#access_token=###&e...
I am creating an application for the 8.0 system.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nicklayk, 2014-05-03
@nicklayk

char[] excesschars = { '=', '&' };
string[] response = e.Uri.AbsoluteUri.Split(excesschars);
access_token = response[1];
MessageBox.Show(access_token);
It was just Uri.AbsoluteUri...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question