sdk.init
Name | Required | Type | Description |
---|---|---|---|
session_data | true | |
Authorization
Session is prohibitedRequired permissions
- VALUABLE_ACCESS
Type
{ "activated_profile": "boolean", "api_server": "String", "auth_hash": "String", "auth_sig": "String", "auth_token": "String", "created_connection": "String", "identifier_clash_info": { "conflicting_unique_name": "String", "created_at": "long", "email_contact": { "confirmation_required": "boolean", "contact": "String" }, "email_enabled": "boolean", "logged_in_with_unique_name": "boolean", "phone_contact": { "confirmation_required": "boolean", "contact": "String" }, "phone_enabled": "boolean", "resolved": "boolean", "resolved_login": "String", "user_id": "long", "user_restore_token": "String" }, "login_intent": { "login_intent_token": "String", "navigate_intent": [ { "link_route": [ { }, { }, { "qr_code": "String" }, { "layer_description_text": "String", "layer_image_url": "String", "layer_title_text": "String", "login_intent_token": "String" }, { "mob_url": "String" }, { "mob_url": "String", "show_intermediate_layer": "boolean" }, { "login_intent_token": "String", "url": "String" } ], "link_url": "String", "stat_context": "String" }, { "original_type": "String", "stat_context": "String" } ], "other_intents": [ [ { "original_type": "String" } ] ] }, "session_key": "String", "session_secret_key": "String", "soc_access_token": "String", "soc_connection": { "access_token": "String", "created": "boolean", "provider": "String", "user_id": "String" }, "uid": "String", "verification_url": "String", "vkc_id_stats": "Long" }
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