P
P
Pigeon12352019-07-02 19:16:41
In contact with
Pigeon1235, 2019-07-02 19:16:41

How to get person id by screen_name?

The essence of the question is how to get the person id for a NodeJS team using screen_name or, more simply, mention (@durov)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Sokolov, 2019-07-02
@Pigeon1235

The VC API method utils.resolveScreenName() takes a single parameter screen_nameand returns two fields:
typeobject type:

  • user - user;
  • group - community;
  • application - application.
and object_id(integer) is the object identifier.

I
iBird Rose, 2019-07-02
@iiiBird

https://vk.com/dev/users.get

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question