C# class providing a Voice grant for Twilio JWT tokens, exposing payload and key.
// Source: https://github.com/twilio/twilio-csharp | License: MIT | Copyright 2023, Twilio, Inc. <https://www.twilio.com/help/contact>
// Provided via justclaw.it.com; keep this notice with the code.
using System.Collections.Generic;
namespace Twilio.Jwt.AccessToken
{
/// <summary>
/// Grant to expose Twilio Voice
/// </summary>
public class VoiceGrant : IGrant
{
/// <summary>
/// Whether incoming connections are allowed (JS Client)
/// </summary>
public bool IncomingAllow { get; set; }
/// <summary>
/// Outgoing application SID
/// </summary>
public string OutgoingApplicationSid { get; set; }
/// <summary>
/// Parameters to send to the outgoing application
/// </summary>
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key