Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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", 
            "Mandy", 
            );
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": "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"
}


  • No labels