WCF
Method
public AuthServerResponseUserInfo FindUser(string authServerPartnerLoginName, string authServerPartnerLoginPassword, string authServerPartnerUserLoginName)
WCF parameter | data type | description |
---|---|---|
authServerPartnerLoginName | string | SurePassId account login name |
authServerPartnerLoginPassword | string | SurePassId account login key |
authServerPartnerUserLoginName | string | User account login name |
Sample WCF C# Method
AuthServerResponseUserInfo resp = FindUser("accountLogin", "accountKey", "Mandy", );
Sample WCF C# Repsonse
if (resp.ErrorCode != 0) { message.Text = resp.ErrorMsg; return false; }
REST
REST parameter | data type | description |
---|---|---|
spAccountLoginName | string | SurePassId account login name |
spAccountLoginKey | string | SurePassId account login key |
username | string | user account login name |
type | string | find_user |
Sample REST/Json Method
{ "username": "Mandy", "spAccountLoginName": "accountLogin", "spAccountLoginKey": "accountKey", "type": "find_user" }
Sample REST/Json Response
{ "deviceType": 12, // deviceType enumeration "otpType": 8, // OtpType enumeration "deviceStatus": 0, // deviceStatus enumeration (0 - enabled, 1 - disabled) "assigned": 1, // userAccountStatus enumeration (0 - unassigned 1 - assigned) "errorCode": 0, "errorMessage": "OK", "type": "find_user" }