Пример #1
0
    static void Main(string[] args)
    {
        // Find your Account Sid and Auth Token at twilio.com/user/account
        const string accountSid = "accountSid";
        const string authToken = "authToken";

        const string serviceSid = "serviceSid";
        const string userSid = "userSid";
        const string roleSid = "roleSid";

        // Update a user
        var client = new TwilioIpMessagingClient(accountSid, authToken);
        User user = client.UpdateUser(serviceSid, userSid, roleSid);
        Console.WriteLine(user);
    }
Пример #2
0
    static void Main(string[] args)
    {
        // Find your Account Sid and Auth Token at twilio.com/user/account
        const string accountSid = "accountSid";
        const string authToken  = "authToken";

        const string serviceSid = "serviceSid";
        const string userSid    = "userSid";
        const string roleSid    = "roleSid";

        // Update a user
        var  client = new TwilioIpMessagingClient(accountSid, authToken);
        User user   = client.UpdateUser(serviceSid, userSid, roleSid);

        Console.WriteLine(user);
    }