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

« Previous Version 2 Current »

WCF


Method
public AuthServerResponse EnableDevice(string authServerPartnerLoginName, 
                 string authServerPartnerLoginPassword, 
                 string authServerPartnerUserLoginName, 
                 string printedSerialNumber)
WCF parameterdata typedescription
authServerPartnerLoginNamestringSurePassId account login name
authServerPartnerLoginPasswordstringSurePassId account login key
authServerPartnerUserLoginNamestringUser account name
printedSerialNumberstringSerial number of the device
Sample WCF C# Method
AuthServerResponse  resp = EnableDevice("accountLogin",             
            "accountKey", 
            "Mandy", 
            "OATH_1234567");
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
typestringassign_device
psnstringSerial number of the device
Sample REST/Json Method
 {
  "spAccountLoginName": "{{spAccountLoginName}}",
  "spAccountLoginKey": "{{spAccountLoginKey}}",
  "username": "{{username}}",
  "psn": "AUTH_1234567",
  "type": "enable_device"
}
Sample REST/Json Response
 {
  "errorCode": 0,
  "errorMessage": "OK",
  "type": "enable_device"
}


  • No labels