Client/EventStreamScope.cs

twilio-csharp · src/Twilio/JWT/Client/EventStreamScope.cs · csharp · MIT
voice, Voice / Speech

Generates JWT scope payload for Twilio event stream subscriptions.

// 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;
using System.Collections.Generic;

#if !NET35
using System.Net;
#else
using System.Web;
#endif

namespace Twilio.Jwt.Client
{
    /// <summary>
    /// Event stream scope for client capabilities
    /// </summary>
    public class EventStreamScope : IScope
    {
        private static readonly string Scope = "scope:stream:subscribe";

        private readonly Dictionary<string, string> _filters;

        /// <summary>
        /// Create a new EventStreamScope
        /// </summary>
        /// <param name="filters">filters to use</param>
        public EventStreamScope(Dictionar

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key