/
Find User

Find User

WCF


Method
public AuthServerResponseUserInfo FindUser(string authServerPartnerLoginName, 
                 string authServerPartnerLoginPassword, 
                 string authServerPartnerUserLoginName)

WCF parameterdata typedescription
authServerPartnerLoginNamestringSurePassID account login name
authServerPartnerLoginPasswordstringSurePassID account login key
authServerPartnerUserLoginNamestringUser account login name
Sample WCF C# Method
AuthServerResponseUserInfo  resp = FindUser("accountLogin",             
            "accountKey", 
            "Larry", 
            );
Sample WCF C# Repsonse
 if (resp.ErrorCode != 0)  {      
       message.Text = resp.ErrorMsg;
       return false;
 }


REST


REST parameterdata typedescription
spAccountLoginNamestringSurePassID account login name
spAccountLoginKeystringSurePassID account login key
usernamestringuser account login name
typestringfind_user
Sample REST/Json Method
 {  
  "username": "Larry",
  "spAccountLoginName": "accountLogin",
  "spAccountLoginKey": "accountKey",
  "type": "find_user"
  
 }
Sample REST/Json Response
 {
  "Devices": [
    {
     "psn": "TSFT-00000015", // serial number 
     "deviceType": 12,       // deviceType enumeration 
     "otpType": 8,           // OtpType enumeration
     "deviceStatus": 0,      // deviceStatus (0 - enabled, 1 - disabled)
    }
  ],
  "userStatus": 0,           // userStatus(0 - enabled, 1 - disabled)
  "firstName": "Lawrence",                                             ",
  "lastName": "Rhodes",
  "mobile": "+1(321)297-8051",
  "email": "larryr@tierasoft.com",
  "errorCode": 0,
  "errorMessage": "OK",
  "type": "find_user"
}


Related content