Пример #1
0
        public void AddPushCredential()
        {
            // Add new Apple credentials.

            try {
                var voximplant = new VoximplantAPI();

                var result = voximplant.AddPushCredential(
                    pushProviderName: "APPLE",
                    certPassword: "******",
                    certFileName: "apple_certificate_name",
                    isDevMode: false
                    ).Result;

                Console.WriteLine($"Response: {result.ToString()}");
            } catch (Exception e) {
                Console.WriteLine($"Error: {e.Message}");
            }
        }