Versions Compared

Key

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

...

Code Block
languagec#
titleSample WCF C# Method
AuthServerResponseUserInfo  resp = FindUser("accountLogin",             
            "accountKey", 
            "MandyLarry", 
            );
Code Block
languagec#
titleSample WCF C# Repsonse
 if (resp.ErrorCode != 0)  {      
       message.Text = resp.ErrorMsg;
       return false;
 }

...

Code Block
languagejs
titleSample REST/Json Method
 {  
  "username": "MandyLarry",
  "spAccountLoginName": "accountLogin",
  "spAccountLoginKey": "accountKey",
  "type": "find_user"
  
 }
Code Block
languagejs
titleSample REST/Json Response
 {
  "Devices": [
    {
     "psn": "TSFT-00000015", // serial number 
     "deviceType": 12,       // deviceType enumeration 
     "otpType": 8,           // OtpType enumeration
     "deviceStatus": 0,      // deviceStatus enumeration  (0 - enabled, 1 - disabled)
   "assigned }
  ],
  "userStatus": 10,           // userAccountStatus enumeration userStatus(0 - unassignedenabled, 1 - assigned) disabled)
  "firstName": "Lawrence",                                             ",
  "lastName": "Rhodes",
  "mobile": "+1(321)297-8051",
  "email": "larryr@tierasoft.com",
  "errorCode": 0,
  "errorMessage": "OK",
  "type": "find_user"
}

...