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 type = "type";
        const string friendlyName = "friendlyName";
        const string privateKey = "privateKey";
        const string sandbox = "sandbox";
        const string apikey = "apiKey";
        const string certificate = "certificate";

        // Create a Credential
        var client = new TwilioIpMessagingClient(accountSid, authToken);
        Credential credential = client.CreateCredential (type, friendlyName, certificate, privateKey, sandbox, apikey);
        Console.WriteLine(credential);
    }
Пример #2
0
    static void Main(string[] args)
    {
        // Find your Account Sid and Auth Token at twilio.com/user/account
        const string accountSid   = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
        const string authToken    = "your_auth_token";
        const string type         = "type";
        const string friendlyName = "friendlyName";
        const string privateKey   = "privateKey";
        const string sandbox      = "sandbox";
        const string apikey       = "apiKey";
        const string certificate  = "certificate";

        // Create a Credential
        var        client     = new TwilioIpMessagingClient(accountSid, authToken);
        Credential credential = client.CreateCredential(type, friendlyName, certificate, privateKey, sandbox, apikey);

        Console.WriteLine(credential);
    }