Versions Compared

Key

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

WCF


Code Block
languagec#
title Method
public AuthServerFindUsersResponse FindUsers(string authServerPartnerLoginName, 
                 string authServerPartnerLoginPassword, 
                 string queryFilter,
                 FindUserFilterType  queryType
               )

...

WCF parameterdata typedescription
authServerPartnerLoginNamestringSurePassId SurePassID account login name
authServerPartnerLoginPasswordstringSurePassId SurePassID account login key
queryFilterstringThe filter to be used for searching for users.  The value can user SQL wildcards such as %.
queryTypequeryFilterTypeFindUserFilterType Identifies the type of queryFilter. Possible values are:  Username or Email. If omitted, Username is assumed

...

Code Block
languagec#
titleSample WCF C# Repsonse
 if (resp.ErrorCode != 0)  {      
       message.Text = resp.ErrorMsg;
       return false;
 }


REST


REST parameterdata typedescription
spAccountLoginNamestringSurePassId SurePassID account login name
spAccountLoginKeystringSurePassId SurePassID account login key
typestringfind_users
queryFilterstringThe filter to be used for searching for users.  The value can user SQL wildcards such as %
queryTypequeryFilterTypestringIdentifies the type of queryFilter. Possible values are:  username or email. If omitted, username is assumed

...

Code Block
languagejs
titleSample REST/Json Method
 {  
  "spAccountLoginName": "accountLogin",
  "spAccountLoginKey": "accountKey",
  "queryFilter": "Mandy@%l%",
  "queryTypequeryFilterType": "username",      // the default if not specified
  "type": "find_users",


}

...

Code Block
languagejs
titleSample REST/Json Response
{
  "Users": [
    {
      "username": "Larrylarry"
    },
    {
      "username": "loginMarty2"
    },
    {
      "username": "testltest"
    },
    {
      "username": "test2ltest2"
    },
    {
      "username": "test3ltest3"
    }
  ],
  "errorCode": 0,
  "errorMessage": "OK",
  "type": "find_users"
}

...