users.getInfoBy

Returns a big portion of user information which depends on their relation to requesting user

NameRequiredTypeDescription
uid true String

ID of a user of which to get information

fields true UserInfoField

List of required fields

register_as_guest false Boolean

Register requesting user as a guest, default true

use_default_cover false Boolean

Return default profile cover if the user did not setup his profile cover, default false

Authorization

Session is required

Required permissions

  • VALUABLE_ACCESS

Type

{ "user": { "accessible": "Boolean", "age": "Integer", "allow_add_to_friend": "Boolean", "allows_anonym_access": "Boolean", "allows_messaging_only_for_friends": "Boolean", "badge_id": "Integer", "badge_img": "String", "badge_link": "String", "badge_title": "String", "bio": "String", "birthday": "String", "birthdaySet": "Boolean", "block_on_demand_reason": "String", "block_on_demand_reason_tokens": [ { "font_styles": [ "String" ], "highlight": "Boolean", "link": "String", "ref": "String", "size": "Integer", "text": "String", "text_align": "String", "text_tokens": [ "mediatopic.MediaTextToken" ], "type": "String" } ], "blocked": "Boolean", "blocks": "Boolean", "bookmarked": "Boolean", "business": "Boolean", "can_use_referral_invite": "Boolean", "can_vcall": "Boolean", "can_vmail": "Boolean", "capabilities": "String", "city_of_birth": "String", "close_comments_allowed": "Boolean", "common_friends_count": "Integer", "current_location": { "altitude": "Float", "cellId": "Integer", "city": "String", "country": "String", "ipAddress": "String", "latitude": "Float", "longitude": "Float" }, "current_status": "String", "current_status_date": "Date", "current_status_date_ms": "Long", "current_status_id": "String", "current_status_mood": { "animation_properties": { "duration": "int", "fps": "int", "frameRepeats": { "lang.Integer": "Integer" }, "framesCount": "int", "replayDelay": "int" }, "background_properties": { "gradientAngle": "int", "primaryColor": "String", "secondaryColor": "String" }, "description": "String", "id": "String", "isAvailable": "Boolean", "is_animated": "Boolean", "is_vip": "Boolean", "pic128x128": "String", "pic16x16": "String", "pic32x32": "String", "pic64x64": "String", "pic_base": "String", "presentation": { "background": { "type": [ "IMAGE", "LINEAR_GRADIENT", "POLL_COVER", "SIMPLE", "SIMPLE_IMAGE", "THEMED" ] }, "backgrounds": [ { "type": [ "IMAGE", "LINEAR_GRADIENT", "POLL_COVER", "SIMPLE", "SIMPLE_IMAGE", "THEMED" ] } ], "color": "String", "font": { "size": "Integer", "size_instruction": { "type": [ "CL" ] } }, "text_align": [ "CENTER", "JUSTIFY", "LEFT", "RIGHT" ] }, "ref": "String", "sprite128": "String", "sprite64": "String", "sprite_base": "String", "token": "String" }, "current_status_track_id": "String", "email": "String", "executor": "Boolean", "external_share_link": "String", "feed_subscription": "Boolean", "first_name": "String", "first_name_instrumental": "String", "followers_count": "Integer", "forbids_mentioning": "Boolean", "friend": "Boolean", "friend_invitation": "Boolean", "friends_count": "Integer", "gender": "String", "has_daily_photo": "Boolean", "has_email": "Boolean", "has_extended_stats": "Boolean", "has_groups_to_comment": "Boolean", "has_moderating_groups": "Boolean", "has_phone": "Boolean", "has_pinned_feed": "Boolean", "has_products": "Boolean", "has_service_invisible": "Boolean", "has_unseen_daily_photo": "Boolean", "invited_by_friend": "Boolean", "is_hobby_expert": "Boolean", "is_merchant": "Boolean", "is_new_user": "Boolean", "is_returning": "Boolean", "last_name": "String", "last_name_instrumental": "String", "last_online": "String", "last_online_ms": "Long", "locale": "String", "location": { "city": "String", "country": "String", "countryCode": "String", "countryName": "String" }, "location_of_birth": { "city": "String", "country": "String", "countryCode": "String", "countryName": "String" }, "login": "String", "mobile": "String", "mobile_activation_date_ms": "Long", "modified_ms": "Long", "name": "String", "name_instrumental": "String", "nn_photo_set_ids": { "lang.String": "String" }, "notifications_subscription": "Boolean", "online": "String", "partner_link_create_allowed": "Boolean", "photo_id": "String", "pic1024x768": "String", "pic128max": "String", "pic128x128": "String", "pic180min": "String", "pic190x190": "String", "pic224x224": "String", "pic240min": "String", "pic288x288": "String", "pic320min": "String", "pic50x50": "String", "pic600x600": "String", "pic640x480": "String", "pic_1": "String", "pic_2": "String", "pic_3": "String", "pic_4": "String", "pic_5": "String", "pic_base": "String", "pic_full": "String", "pic_max": "String", "picgif": "String", "picmp4": "String", "picwebm": "String", "possible_relations": [ [ "ALL", "BROTHERSISTER", "CHILD", "CHILDINLAW", "CLASSMATE", "CLOSEFRIEND", "COLLEGUE", "COMPANIONINARMS", "CURSEMATE", "GODCHILD", "GODPARENT", "GRANDCHILD", "GRANDPARENT", "LOVE", "NEPHEW", "PARENT", "PARENTINLAW", "PLAYINGTOGETHER", "RELATIVE", "SPOUSE", "UNCLEAUNT" ] ], "premium": "Boolean", "presents": [ { "acceptLink": "String", "acceptText": "String", "discussion_summary": { "comments_count": "Integer", "discussion_id": "String", "discussion_type": [ "CHAT", "CITY_NEWS", "GROUP_MOVIE", "GROUP_PHOTO", "GROUP_PRODUCT", "GROUP_TOPIC", "HAPPENING_TOPIC", "HOBBY_QUESTION", "MOVIE", "OFFER", "PRESENT", "SCHOOL_FORUM", "SHARE", "USER_ALBUM", "USER_FORUM", "USER_PHOTO", "USER_PRODUCT", "USER_STATUS" ] }, "holiday_id": "Long", "id": "String", "isAccepted": "Boolean", "isWrapped": "Boolean", "is_cancelable": "Boolean", "is_from_gift_and_meet": "Boolean", "is_guessed": "Boolean", "is_guesswork": "Boolean", "is_private": "Boolean", "is_secret": "Boolean", "like_summary": "like.LikeSummaryBean", "message": "String", "music_track_id": "String", "music_track_refs": [ "String" ], "overlayX": "Byte", "overlayY": "Byte", "presentAccTime": "Long", "presentExpTime": "Long", "presentRegTime": "Long", "presentTime": "Long", "present_type_ref": "String", "price": "Integer", "price_c": "Integer", "receiver_ref": "String", "receiver_tokens": [ { "action": "String", "behavior": "String", "foreground_color": "String", "link": "String", "ref": "String", "text": "String" } ], "ref": "String", "scheduled_date": "String", "sender_ref": "String", "sender_tokens": [ { "action": "String", "behavior": "String", "foreground_color": "String", "link": "String", "ref": "String", "text": "String" } ], "tariff": "Integer", "text": "String" } ], "private": "Boolean", "profile_buttons": [ { "action": [ "CALL_TO_OK", "GROUP_MESSAGES", "LINK", "MESSAGE", "NONE", "PHONE", "PRESENT", "TRANSFER" ], "button_key": "String", "button_title": "String", "param": "String" } ], "profile_cover": { "cover_photo": "data.PhotoBeanBase", "default_cover": { "alpha": "Float", "expanded_alpha": "Float", "offset_x": "Float", "offset_y": "Float", "pic_base": "String", "pic_max": "String" } }, "ref": "String", "registered_date": "Date", "registered_date_ms": "Long", "relations": [ { "subtype_id": [ "ALL", "BROTHERSISTER", "CHILD", "CHILDINLAW", "CLASSMATE", "CLOSEFRIEND", "COLLEGUE", "COMPANIONINARMS", "CURSEMATE", "GODCHILD", "GODPARENT", "GRANDCHILD", "GRANDPARENT", "LOVE", "NEPHEW", "PARENT", "PARENTINLAW", "PLAYINGTOGETHER", "RELATIVE", "SPOUSE", "UNCLEAUNT" ], "type_id": [ "ALL", "BROTHERSISTER", "CHILD", "CHILDINLAW", "CLASSMATE", "CLOSEFRIEND", "COLLEGUE", "COMPANIONINARMS", "CURSEMATE", "GODCHILD", "GODPARENT", "GRANDCHILD", "GRANDPARENT", "LOVE", "NEPHEW", "PARENT", "PARENTINLAW", "PLAYINGTOGETHER", "RELATIVE", "SPOUSE", "UNCLEAUNT" ], "uids": [ "String" ] } ], "relationship": { "first_name": "String", "last_name": "String", "message": "String", "message_tokens": [ { "action": "String", "behavior": "String", "foreground_color": "String", "link": "String", "ref": "String", "text": "String" } ], "status": [ "DIVORCED", "LOVE", "OPEN", "SPOUSE" ], "uid": "String" }, "shortname": "String", "show_lock": "Boolean", "skill": { "about": "String", "card_id": "long", "category": { "code": "String", "name": "String" }, "category_icon": "String", "sub_categories": [ { "code": "String", "name": "String" } ] }, "social_aliases": [ { "alias": "String", "type": "String" } ], "status": { "iconText": "String", "iconUrl": "String", "link": "String", "text": "String" }, "total_photos_count": "Integer", "uid": "String", "url_chat": "String", "url_chat_mobile": "String", "url_profile": "String", "url_profile_mobile": "String", "vip": "Boolean" } }

Application paramters

User session data

Method

List of paramters

Используем для подписи secret_key = session_secret_key
Используем для подписи secret_key = application_secret_key
Используем для подписи secret_key = MD5(access_token + application_secret_key)
secret_key =
Сортируем и склеиваем параметры запроса и secret_key
Рассчитываем MD5 от полученной строки и получаем параметр sig