zimennik
Posts: 0
Joined: Sat Jan 17, 2015 4:18 pm

Response as html

Hello.
I'm trying to add VK API to my app. But I'm stuck on authorization.
I create service to get login page (html) wich after autorization must return token (i think). I also create html-component to show this page. But I don't know how to use response as html.
Or maybe there is a better way to authorization (without html-component)?

M&M
Posts: 0
Joined: Tue Nov 11, 2014 6:59 am

Response as html

I dun really know how / what the VK API thingy is but if it works in any way that's similar to the REST API calls, then you should technically be able to call that using the correct parameters / request headers, and it should return a authorization token, which you can use in your subsequent calls

M&M

zimennik
Posts: 0
Joined: Sat Jan 17, 2015 4:18 pm

Response as html

As I know VK API work this way: it send you html login page - you enter value and send back - it send you token. But I could be wrong.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Response as html

Hi zimennik -

Unfortunately we are not familiar with VK API you should check their documentation and make your own implementation in your app. If they have a REST service, it will be much easier, in other cases you need to make your own implementation.

zimennik
Posts: 0
Joined: Sat Jan 17, 2015 4:18 pm

Response as html

Ok, thanks.
Can you tell me how can I load response of service as html page?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Response as html

Can you please show what service is returning as a response?

M&M
Posts: 0
Joined: Tue Nov 11, 2014 6:59 am

Response as html

Is this what you are referring to?

http://vk.com/pages?oid=-17680044&p=A...

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Response as html

Thanks M&M!

As far as I can see this API uses OAuth 2.0 protocol, so it's better to start from this tutorial - http://devcenter.appery.io/tutorials/...

-- and after that connect VK API.

zimennik
Posts: 0
Joined: Sat Jan 17, 2015 4:18 pm

Response as html

Thank you, guys! Very helpful!

Return to “Issues”