Y
Y
yvetrov2019-01-12 13:05:33
JavaScript
yvetrov, 2019-01-12 13:05:33

What is the data in VK API?

Hello, I have a question, is there an API received from VKontakte:

VK.auth.login(data => {
if (data.session) {
console.log('Авторизация прошла успешно') {
else {
console.log('Авторизация не удалась')
}
}, 2 | 4);

What is data for?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Ivanov, 2019-01-13
@vlivanov1227

What is data for?

Stores session data after authorization.
It can also give 2 parameters that store the status of the current user.
More details can be found in the documentation at: https://vk.com/dev/openapi?f=3.1.%20VK.Auth.login

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question