M
M
Mercurus2018-08-01 16:30:56
HTML
Mercurus, 2018-08-01 16:30:56

How to use Mobile SDK VK API?

Good evening!
Please help me understand the topic of using the VK API in Direct Games VKontakte.
I have a prototype of the game and I wanted to figure out how the api works.
The essence of the question, How to correctly make a "users.get" request so that I can display the name of the user who is currently playing the game on the game screen, I wrote like this:
VK.init(function(){
VK.api('users. get',{ user_ids:1,fields:"photo_big"},function(data){
} );
},function(){},'5.60');
};
Tell me what's wrong?
Thanks a lot in advance!!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question