Get the value of a stored access token. Tokens are stored in Isolated Storage
on entity level and can be used for saving authentication tokens and set their expiration time.
Enum "Provider ID RWU"
- Specifies the enum ID of RESTwithUS provider.Enum "Entity ID RWU"
- Specifies the enum ID of RESTwithUS entity.Text
- Filters the connections for a specific value in Ext. Description field (useful for saving authentication tokens for multiple users).Text
- Specifies the description of RESTwithUS provider.Text
- Specifies the description of RESTwithUS entity.Text
- Filters the connections for a specific value in Ext. Description field (useful for saving authentication tokens for multiple users).Text
Value of a stored token. Returns empty string if no token found or token expired.
//Get the first token for a provider
APIScriptRWU.TOKEN(ProviderID::TestProvider,'',''); //By enum ID
APIScriptRWU.TOKEN('Test Provider','',''); //By description
//Get the token associated with specific entity
APIScriptRWU.TOKEN(ProviderID::TestProvider,ProviderID::TestProvider_Sesssion,''); //By enum ID
APIScriptRWU.TOKEN('Test Provider','Session',''); //By description
//Get the token associated with specific user saved in connection external description
APIScriptRWU.TOKEN(ProviderID::TestProvider,ProviderID::TestProvider_Sesssion,'test@user.com'); //By enum ID
APIScriptRWU.TOKEN('Test Provider','Session','test@user.com'); //By description