D
D
Danil Lilov2020-02-19 20:52:47
PHP
Danil Lilov, 2020-02-19 20:52:47

How to authorize a VK account through a third-party API application?

In general, the need has ripened to receive a token through a third-party application.

I took the first random software, which is authorized through a third-party application, for example, through KATE MOBILE.
Snapped, received requests:
https://oauth.vk.com/token?grant_type=password&cli... - authorization through android applications

https://android.clients.google.com/checkin

https://android.clients.google.com/c2dm/register3

https://api.vk.com/method/auth.refreshToken?receip...
===============
As a result, after the refreshToken, I am given the KATE MOBIle application token

What requests to send androyd client to get a response in the form of a token for receipt?
Maybe there is a ready-made solution, I tried
example
https://github.com/vodka2/vk-audio-token

but did not understand how to send requests to Google.

What is required from the script then?
I insert the log: pass
application id and in echo it gives me the kate mobile token - that's it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nokimaro, 2020-02-20
@nokimaro

the code from vodka2 is quite working
specifically about requests to google there is an example
https://github.com/vodka2/vk-audio-token/blob/d586...
Well, auth.refreshToken and requests to google are not needed for all methods, only for some, for example, for working with audio.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question