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 Next »

WCF


Method
public AuthServerFindUsersResponse FindUsers(string authServerPartnerLoginName, 
                 string authServerPartnerLoginPassword, 
                 string queryFilter,
                 FindUserFilterType  queryType
               )

WCF parameterdata typedescription
authServerPartnerLoginNamestringSurePassId account login name
authServerPartnerLoginPasswordstringSurePassId account login key
queryFilterstringThe filter to be used for searching for users.  The value can user SQL wildcards such as %.
queryTypeFindUserFilterType Identifies the type of queryFilter. Possible values are:  Username or Email. If omitted, Username is assumed
Sample WCF C# Method
AuthServerFindUsersResponse resp = FindUsers("accountLogin",             
            "accountKey", 
            "M%",         // search for all users beginning with M
            FindUserFilterType.LoginName
            );
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
typestringfind_users
queryFilterstringThe filter to be used for searching for users.  The value can user SQL wildcards such as %
queryTypestringIdentifies the type of queryFilter. Possible values are:  username or email. If omitted, username is assumed
Sample REST/Json Method
 {  
  "spAccountLoginName": "accountLogin",
  "spAccountLoginKey": "accountKey",
  "queryFilter": "l%",
  "queryType": "username",      // the default if not specified
  "type": "find_users",


}
Sample REST/Json Response
{
  "Users": [
    {
      "username": "larry"
    },
    {
      "username": "loginMarty2"
    },
    {
      "username": "ltest"
    },
    {
      "username": "ltest2"
    },
    {
      "username": "ltest3"
    }
  ],
  "errorCode": 0,
  "errorMessage": "OK",
  "type": "find_users"
}


  • No labels