Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagec#
title Method
public AuthServerResponse ActiveDevice(string authServerPartnerLoginName, 
                 string authServerPartnerLoginPassword, 
                 string authServerPartnerUserLoginName, 
                 string otp1,
                 string otp1otp2,
                 string printedSerialNumber)

...

REST parameterdata typedescription
spAccountLoginNamestringSurePassId account login name
spAccountLoginKeystringSurePassId account login key
usernamestringuser account login name
typestringactivateactive_oath_device
otp1intotp from the device to be activated
otp2intsecond otp from the device  to be activated
psnstringSerial number of the device
Code Block
languagejs
titleSample REST/Json Method
 {  
  "username": "Mandy",
  "spAccountLoginName": "accountLogin",
  "spAccountLoginKey": "accountKey",
  "type": "activateactive_oath_device",
  "otp1": 123456,
  "otp1otp2": 123456,
  "psn": "OATH_1234567",
 }
Code Block
languagejs
titleSample REST/Json Response
 {  
  "errorCode": 0,
  "errorMessage": "OK",
  "type": "activateactive_oath_device"
  }