{"id":40674604,"url":"https://github.com/totalvoice/totalvoice-node","last_synced_at":"2026-01-21T09:38:44.551Z","repository":{"id":47465092,"uuid":"113577327","full_name":"totalvoice/totalvoice-node","owner":"totalvoice","description":"Client em NodeJS para API da Totalvoice","archived":false,"fork":false,"pushed_at":"2024-07-16T14:06:04.000Z","size":61,"stargazers_count":61,"open_issues_count":2,"forks_count":15,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-09-08T05:36:19.538Z","etag":null,"topics":["api","audio","central","chamada","ramais","rest-api","sms","telefonia","totalvoice","totalvoice-node","tts"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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":"2017-12-08T13:28:31.000Z","updated_at":"2025-05-24T11:28:27.000Z","dependencies_parsed_at":"2022-09-26T16:22:02.721Z","dependency_job_id":null,"html_url":"https://github.com/totalvoice/totalvoice-node","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/totalvoice/totalvoice-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totalvoice%2Ftotalvoice-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totalvoice%2Ftotalvoice-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totalvoice%2Ftotalvoice-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totalvoice%2Ftotalvoice-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/totalvoice","download_url":"https://codeload.github.com/totalvoice/totalvoice-node/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totalvoice%2Ftotalvoice-node/sbom","scorecard":{"id":895372,"data":{"date":"2025-08-11","repo":{"name":"github.com/totalvoice/totalvoice-node","commit":"f50b72c240bfbdd787ad979137d1b43a0cedd2e7"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.7,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":8,"reason":"Found 10/12 approved changesets -- score normalized to 8","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-24T13:29:29.034Z","repository_id":47465092,"created_at":"2025-08-24T13:29:29.034Z","updated_at":"2025-08-24T13:29:29.034Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28631425,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"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","central","chamada","ramais","rest-api","sms","telefonia","totalvoice","totalvoice-node","tts"],"created_at":"2026-01-21T09:38:43.921Z","updated_at":"2026-01-21T09:38:44.529Z","avatar_url":"https://github.com/totalvoice.png","language":"JavaScript","readme":"# totalvoice-node\nCliente em NodeJS para API da Totalvoice\n\n[![Build Status](https://travis-ci.org/totalvoice/totalvoice-node.svg?branch=master)](http://travis-ci.org/#!/totalvoice/totalvoice-node)\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 da Central\n\n\u003e ### Requisitos\n\n- NodeJS 6 ou superior\n\n\u003e ### Instalação\n\n```bash\nnpm install --save totalvoice-node\n```\n\nou\n\n```bash\nyarn add totalvoice-node\n```\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\nOs métodos da API que poderão ser invocados:\n- audio\n- central\n- chamada\n- composto\n- conferencia\n- conta\n- perfil\n- sms\n- tts\n\nA seguir exemplos de como pode ser utilizada esta biblioteca.\n\n\u003e ##### Realiza uma chamada telefônica entre dois números: A e B\n\n```javascript\n\nconst totalvoice = require('totalvoice-node');\nconst client = new totalvoice(\"access-token\");\n\nclient.chamada.ligar(\"4832830151\", \"4811111111\")\n    .then(function (data) {\n        console.log(data)\n    })\n    .catch(function (error) {\n        console.error('Erro: ', error)\n    });\n\n```\n\n\u003e ##### Consulta de chamada pelo ID\n\n```javascript\n\nconst totalvoice = require('totalvoice-node');\nconst client = new totalvoice(\"access-token\");\n\nclient.chamada.buscar(123) // ID da chamada\n    .then(function (data) {\n        console.log(data)\n    })\n    .catch(function (error) {\n        console.error('Erro: ', error)\n    });\n\n```\n\n\n\u003e ##### Encerra uma chamada ativa\n\n```javascript\n\nconst totalvoice = require('totalvoice-node');\nconst client = new totalvoice(\"access-token\");\n\nclient.chamada.encerrar(123) // ID da chamada\n    .then(function (data) {\n        console.log(data)\n    })\n    .catch(function (error) {\n        console.error('Erro: ', error)\n    });\n\n```\n\n\u003e ##### Envio de SMS\n\n```javascript\n\nconst totalvoice = require('totalvoice-node');\nconst client = new totalvoice(\"access-token\");\n\nvar resposta_usuario = false;\nvar multi_sms = false;\nvar data_criacao = '';\nclient.sms.enviar(\"4811111111\", \"Mensagem SMS\", resposta_usuario, multi_sms, data_criacao)\n    .then(function (data) {\n        console.log(data)\n    })\n    .catch(function (error) {\n        console.error('Erro: ', error)\n    });\n\n```\n\n\u003e ##### Envio de TTS\n\n```javascript\n\nconst totalvoice = require('totalvoice-node');\nconst client = new totalvoice(\"access-token\");\n\nvar opcoes = {velocidade: 2, tipo_voz: \"br-Vitoria\", bina: \"bina_cadastrada\"};\nclient.tts.enviar(\"4811111111\", \"Mensagem TTS\", opcoes);\n    .then(function(data) {\n        console.log(data);\n    })\n    .catch(function(error) {\n        console.log('Erro: ', error)\n    });\n\n```\n\n\u003e ##### Envio de Audio\n\n```javascript\n\nconst totalvoice = require('totalvoice-node');\nconst client = new totalvoice(\"access-token\");\n\nclient.audio.enviar(\"4811111111\", \"https://foo.bar/audio.mp3\")\n    .then(function(data) {\n        console.log(data);\n    })\n    .catch(function(error) {\n        console.log('Erro: ', error)\n    });\n\n```\n\n\u003e ##### Configurações de central telefonica\n\n```javascript\n\nconst totalvoice = require('totalvoice-node');\nconst client = new totalvoice(\"access-token\");\n\nclient.central.buscaRamal(123546) // ID do Ramal\n    .then(function(data) {\n        console.log(data);\n    })\n    .catch(function(error) {\n        console.log('Erro: ', error)\n    });\n\n```\n\n\u003e ##### Gerenciamento dos dados da Conta\n\n```javascript\n\nconst totalvoice = require('totalvoice-node');\nconst client = new totalvoice(\"access-token\");\n\nclient.conta.buscar(123546) // ID da Conta\n    .then(function(data) {\n        console.log(data);\n    })\n    .catch(function(error) {\n        console.log('Erro: ', error)\n    });\n\n```\n\n\u003e ##### Consulta saldo da Minha Conta\n\n```javascript\n\nconst totalvoice = require('totalvoice-node');\nconst client = new totalvoice(\"access-token\");\n\nclient.perfil.consultaSaldo()\n    .then(function(data) {\n        console.log(data);\n    })\n    .catch(function(error) {\n        console.log('Erro: ', error)\n    });\n\n```\n\n\u003e ##### Caso você necessite utilizar seu próprio endereço configurado na Total Voice\n\n```javascript\n\nconst totalvoice = require('totalvoice-node');\nconst client = new totalvoice(\"access-token\", \"https://seu-dominio.com.br\");\n...\n\n```\n\n\u003e ##### Caso você necessite utilizar com Proxy\n\n```javascript\n\nconst totalvoice = require('totalvoice-node');\nlet options = {\n    proxy: {\n        host: 'proxy.com',\n        port: 8888,\n        auth: {\n            username: 'XXXX',\n            password: 'XXXX'\n        }\n    }\n};\nconst client = new totalvoice(\"access-token\", \"https://seu-dominio.com.br\", options);\n...\n\n```\n\nMais informações sobre os métodos disponíveis podem ser encontrados na documentação da [API](https://api.totalvoice.com.br/doc/#/)\n\n\u003e ### Contribua!\n\nQuer contribuir? [clique aqui](https://github.com/totalvoice/totalvoice-node/blob/master/CONTRIBUTING.md)\n\n\u003e ### Licença\n\nEsta biblioteca segue os termos de uso da [MIT](https://github.com/totalvoice/totalvoice-node/blob/master/LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftotalvoice%2Ftotalvoice-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftotalvoice%2Ftotalvoice-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftotalvoice%2Ftotalvoice-node/lists"}