K
K
Kirill Morozov2017-06-06 16:38:31
Python
Kirill Morozov, 2017-06-06 16:38:31

How to return specific fields using VK API, Python and vk library?

Please tell me why these fields are returned without problems:

profiles = api.users.get(user_id=user_id,  fields = "bdate, city, sex, country, nickname, followers_count, occupation")

And the others don't come back?
The VKontakte documentation says that for some fields a token is needed, but those fields for which it is needed are returned without problems.
We really need other fields...)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Bastax13, 2017-06-06
@Bastax13

Perhaps you are using a service access key (this is when only public information is visible ). Get an access_token and try calling the method again.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question