I
I
iljassgos2021-12-28 17:01:17
Python
iljassgos, 2021-12-28 17:01:17

Why does the online field not appear in the result when passing additional fields fields to vk_api?

In Vk_api I use the users.get method. It allows you to find out additional information about users (in my case, there is a list with user ids).
Here is the documentation for this method: https://dev.vk.com/method/users.get
So. I need to get additional information about users, and more specifically, whether a person is online, whether his private messages are open. 61cb15d56f1dd652391796.pngI am running a query like this. I program in python, but vk_api is also supported in c++, c#, so the point is not in python. What am I doing wrong in the request? At me all fields correctly as a result come, except for the online field. The field online does not come. Here is an example of an array element that comes up. There is no online field.61cb189635e27665135536.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
iljassgos, 2021-12-28
@iljassgos

Found the answer. It was necessary to swap 2 elements in the fields fields. It's very strange, but that's how it works....

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question