WCF
Method
public AuthServerResponse EnableDevice(string authServerPartnerLoginName, string authServerPartnerLoginPassword, string authServerPartnerUserLoginName, string printedSerialNumber)
WCF parameter | data type | description |
---|---|---|
authServerPartnerLoginName | string | SurePassId account login name |
authServerPartnerLoginPassword | string | SurePassId account login key |
authServerPartnerUserLoginName | string | User account name |
printedSerialNumber | string | Serial number of the device |
Sample WCF C# Method
AuthServerResponse resp = AssginDevice("accountLogin", "accountKey", "Mandy", "OATH_1234567");
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 | assign_device |
psn | string | Serial 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" }