Versions Compared

Key

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

WCF

Code Block
languagec#
titleIsSessinTokenValid method
AuthServerSessionTokensResponse IsSessionTokenValid(string authServerPartnerLoginName,
            string authServerPartnerLoginPassword,
            string authServerPartnerUserLoginName,
            string sessionTokenId);

 

 

 
WCF parameterdata typedescription
authServerPartnerLoginNamestringSurePassId account login name
authServerPartnerLoginPasswordstringSurePassId account login key
authServerPartnerUserLoginNamestringUser account login name
 sessionTokenId    stringThe tokenId to be checked for validity. The tokenId is returned to the user following the CreateSessionToken method
Code Block
languagec#
titleSample WCF C# Method
  AuthServerSessionTokensResponse resp = IsSessionTokenValid("accountLogin",
            "accountKey",
            "Mandy",
            "245dwfweee**fwerwrfwdd4");
Code Block
languagec#
titleSample WCF C# Repsonse
 if (resp.ErrorCode != 0)  {      
       message.Text = resp.ErrorMsg;
       return false;
 }

...

REST parameterdata typedescription
spAccountLoginNamestringSurePassId account login name
spAccountLoginKeystringSurePassId account login key
usernamestringuser account login name
typestring p1  is_session_token_valid
sessionTokenIdstringThe tokenId to be checked for validity. The tokenId is returned to the user following the CreateSessionToken method
Code Block
languagejs
titleSample REST/Json Method
 

...