ITwilioAuthenticationGenerateTwilioToken Method |
Generates a token based on the type you provide in the type
parameter
Namespace:
NetQuarry.Services
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax string GenerateTwilioToken(
string userId,
TwilioTokenType type
)
Function GenerateTwilioToken (
userId As String,
type As TwilioTokenType
) As String
Parameters
- userId
- Type: SystemString
The name of the user for generating Twilio Client tokens and TaskRouter worker tokens.
- type
- Type: NetQuarry.ServicesTwilioTokenType
The type of token to generate
Return Value
Type:
StringA JSON Web Token string
See Also