Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:sidebar:remoteapi:apiref:user:verify_auth [15/05/2018 17:29] (current)
stan created
Line 1: Line 1:
 +{{indexmenu_n>​0.1}}
 +====== Two-factor authentication adress verification ======
  
 +Command **user/​verify_auth** - sends code to specified address and returns it, so you can check that address is valid.
 +<code javascript>​
 +svc=user/​verify_auth&​params={"​userId":<​long>,​
 +      "​type":<​uint>,​
 +      "​destination":<​text>​}
 +</​code>​
 +
 +===== Parameters =====
 +^ Name ^ Description ^
 +| userId | user ID |
 +| type | address type (0 - sms, 1 - email) |
 +| destination | email or phone number |
 +
 +===== Response =====
 +<code javascript>​
 +{
 + "​code":<​text>​ /​* code */
 +}
 +</​code>​
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2019 Gurtam