{"id":37060015,"url":"https://github.com/totalvoice/totalvoice-csharp","last_synced_at":"2026-01-14T06:47:16.446Z","repository":{"id":40937626,"uuid":"133834294","full_name":"totalvoice/totalvoice-csharp","owner":"totalvoice","description":"Client em C# para a API da TotalVoice","archived":false,"fork":false,"pushed_at":"2024-07-16T14:05:58.000Z","size":70,"stargazers_count":6,"open_issues_count":1,"forks_count":1,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-11-10T17:29:50.875Z","etag":null,"topics":["api","audio","client","csharp","did","dotnet","rest","sms","telefonia","totalvoice","tts","ura"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/totalvoice.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-17T15:36:55.000Z","updated_at":"2021-09-30T21:24:56.000Z","dependencies_parsed_at":"2023-01-24T01:40:20.193Z","dependency_job_id":null,"html_url":"https://github.com/totalvoice/totalvoice-csharp","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/totalvoice/totalvoice-csharp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totalvoice%2Ftotalvoice-csharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totalvoice%2Ftotalvoice-csharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totalvoice%2Ftotalvoice-csharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totalvoice%2Ftotalvoice-csharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/totalvoice","download_url":"https://codeload.github.com/totalvoice/totalvoice-csharp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totalvoice%2Ftotalvoice-csharp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28412298,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T05:26:33.345Z","status":"ssl_error","status_checked_at":"2026-01-14T05:21:57.251Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","audio","client","csharp","did","dotnet","rest","sms","telefonia","totalvoice","tts","ura"],"created_at":"2026-01-14T06:47:15.876Z","updated_at":"2026-01-14T06:47:16.438Z","avatar_url":"https://github.com/totalvoice.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# totalvoice-csharp\nClient C# para a API da TotalVoice\n\n\u003e ### Funcionalidades\n\n- [X] Gerenciamento das chamadas\n- [X] Consulta e envio de SMS\n- [X] Consulta e envio de TTS\n- [X] Consulta e envio de Audio\n- [X] Gerenciamento da Conta\n- [X] Gerenciamento de Ramais\n- [X] URL do Webphone\n- [X] Gerenciamento de DID\n\n\u003e ### Pré requisitos\n\n- .NET Framework 4.6.1 ou .NET Core 2.0\n- Nuget\n\n\u003e ### Utilização\n\nPara utilizar esta biblioteca, primeiramente você deverá realizar um cadastro no site da [Total Voice](http://www.totalvoice.com.br).\nApós a criação do cadastro será disponibilizado um AccessToken para acesso a API.\n\nCom o AccessToken em mãos será possível realizar as consultas/cadastros conforme documentação da [API](https://api.totalvoice.com.br/doc/#/)\n\n\u003e #### Instalando com o gerenciador de pacotes [Nuget](https://www.nuget.org/packages/TotalVoice/) \n\n```\nPM\u003e Install-Package TotalVoice -Version 1.0.1\n```\nou .NET CLI\n\n```\ndotnet add package TotalVoice --version 1.0.1\n```\n\nA seguir alguns exemplos de como pode ser utilizada esta biblioteca.\n\n\u003e ##### Realizar uma chamada telefônica entre dois números: A e B\n\n```csharp\nnamespace Teste\n{\n    class Program\n    {\n        static void Main(string[] args)\n        {\n            TotalVoiceClient client = new TotalVoiceClient(\"access-token\");\n            Chamada chamada = new Chamada(client);\n            var json = new {\n                numero_origem  = \"48988888888\",\n                numero_destino = \"48999999999\"\n            };\n            string response = chamada.Ligar(json);\n            System.Diagnostics.Debug.WriteLine(response);\n        }\n    }\n}\n```\n\n\u003e ##### Consulta de chamada pelo ID\n\n```csharp\nnamespace Teste\n{\n    class Program\n    {\n        static void Main(string[] args)\n        {\n            TotalVoiceClient client = new TotalVoiceClient(\"access-token\");\n            Chamada chamada = new Chamada(client);\n            string response = chamada.Buscar(123);\n            System.Diagnostics.Debug.WriteLine(response);\n        }\n    }\n}\n```\n\n\u003e ##### Enviar um SMS\n\n```csharp\nnamespace Teste\n{\n    class Program\n    {\n        static void Main(string[] args)\n        {\n            TotalVoiceClient client = new TotalVoiceClient(\"access-token\");\n            Sms sms = new Sms(client);\n            var json = new {\n                numero_destino = \"48999999999\",\n                mensagem = \"Mensagem de teste\"\n            };\n            string response = sms.Enviar(json);\n            System.Diagnostics.Debug.WriteLine(response);\n        }\n    }\n}\n```\n\n\u003e ##### Buscar os dados de um SMS pelo ID\n\n```csharp\nnamespace Teste\n{\n    class Program\n    {\n        static void Main(string[] args)\n        {\n            TotalVoiceClient client = new TotalVoiceClient(\"access-token\");\n            Sms sms = new Sms(client);\n            string response = sms.Buscar(123);\n            System.Diagnostics.Debug.WriteLine(response);\n        }\n    }\n}\n```\n\n\u003e ##### Enviar um TTS\n\n```csharp\nnamespace Teste\n{\n    class Program\n    {\n        static void Main(string[] args)\n        {\n            TotalVoiceClient client = new TotalVoiceClient(\"access-token\");\n            Tts tts = new Tts(client);\n            var json = new {\n                numero_destino = \"48999999999\",\n                mensagem = \"Mensagem de TTS\"\n            };\n            string response = tts.Enviar(json);\n            System.Diagnostics.Debug.WriteLine(response);\n        }\n    }\n}\n```\n\n\u003e ##### Validacao de Numero\n\n```csharp\nnamespace Teste\n{\n    class Program\n    {\n        static void Main(string[] args)\n        {\n            TotalVoiceClient client = new TotalVoiceClient(\"access-token\");\n            ValidaNumero validacao = new ValidaNumero(client);\n            var json = new {\n                numero_destino = \"48999999999\",\n                gravar_audio   = true,\n                bina           = \"48808880804\",\n                max_tentativas = 1\n            };\n            string response = validacao.Enviar(json);\n            System.Diagnostics.Debug.WriteLine(response);\n        }\n    }\n}\n```\n\n\u003e ##### Enviar um Composto\n\n```csharp\nnamespace Teste\n{\n    class Program\n    {\n        static void Main(string[] args)\n        {\n            TotalVoiceClient client = new TotalVoiceClient(\"access-token\");\n            Composto composto = new Composto(client);\n            var json = new {\n              numero_destino = \"48988888888\",\n              dados = new[] {\n                 new {\n                   acao = \"tts\",\n                   acao_dados = new {\n                     mensagem = \"O número digitado não consta em nosso cadastro. Por gentileza, tente novamente\",\n                     tipo_voz = \"br-Ricardo\" \n                   }\n                 },\n                 new {\n                   acao = \"audio\",\n                   acao_dados = new {\n                     url_audio = \"https://minhaurl.com.br/audio.mp3\"\n                   }\n                 }\n              },\n              gravar_audio     = false,\n              bina             = \"48988888888\",\n              tags             = \"clienteX\",\n              detecta_caixa    = false\n           };\n           string response = composto.Enviar(json);\n           System.Diagnostics.Debug.WriteLine(response);\n        }\n    }\n}\n```\n\n\u003e ### Licença\n\nEsta biblioteca segue os termos de uso da [MIT](https://github.com/totalvoice/totalvoice-csharp/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftotalvoice%2Ftotalvoice-csharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftotalvoice%2Ftotalvoice-csharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftotalvoice%2Ftotalvoice-csharp/lists"}