{"id":18470241,"url":"https://github.com/caioagiani/backend-sms","last_synced_at":"2025-10-12T02:52:05.959Z","repository":{"id":37027893,"uuid":"341739770","full_name":"caioagiani/backend-sms","owner":"caioagiani","description":"API para disparos de SMS e Encurtador de URL com Gateway Mobizon","archived":false,"fork":false,"pushed_at":"2024-12-09T13:25:36.000Z","size":74,"stargazers_count":13,"open_issues_count":11,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T11:42:06.629Z","etag":null,"topics":["api","api-rest","apigateway","es6","gateway","javascript","mobizon","nodejs","shortcode","sms"],"latest_commit_sha":null,"homepage":"https://mobizon.com.br","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/caioagiani.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-24T01:17:50.000Z","updated_at":"2024-08-13T19:50:26.000Z","dependencies_parsed_at":"2023-01-20T10:45:21.575Z","dependency_job_id":"67a067df-7cdf-4f27-a3c6-7964590aed2d","html_url":"https://github.com/caioagiani/backend-sms","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caioagiani%2Fbackend-sms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caioagiani%2Fbackend-sms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caioagiani%2Fbackend-sms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caioagiani%2Fbackend-sms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caioagiani","download_url":"https://codeload.github.com/caioagiani/backend-sms/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247824412,"owners_count":21002267,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","api-rest","apigateway","es6","gateway","javascript","mobizon","nodejs","shortcode","sms"],"created_at":"2024-11-06T10:13:23.142Z","updated_at":"2025-10-12T02:52:00.903Z","avatar_url":"https://github.com/caioagiani.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg width=\"16%\" src=\".github/logo.png\" alt=\"mobizon sms\" title=\"mobizon sms\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch3 align=\"center\"\u003eBackend-SMS\u003c/h3\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"GitHub language count\" src=\"https://img.shields.io/github/languages/count/caioagiani/backend-sms\"\u003e\n  \u003cimg alt=\"GitHub top language\" src=\"https://img.shields.io/github/languages/top/caioagiani/backend-sms\"\u003e\n  \u003cimg alt=\"GitHub repo size\" src=\"https://img.shields.io/github/repo-size/caioagiani/backend-sms\"\u003e\n  \u003cimg alt=\"GitHub license\" src=\"https://img.shields.io/badge/license-MIT-blue.svg\"\u003e\n\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n\nAplicação API para disparos de SMS e Encurtador de URL usando o Gateway - [Mobizon](https://github.com/mobizon/mobizon-php/tree/master/docs/examples)\n\n\u003c/div\u003e\n\n## API Key\n\nNecessário registrar a conta no site abaixo para obter sua key:\n\n- [mobizon.com.br](https://mobizon.com.br)\n\n## Iniciar aplicação\n\n```bash\n# clone\n$ git clone git@github.com:caioagiani/backend-sms.git\n\n# abrir pasta\n$ cd backend-sms\n\n# configurar vars ambiente\n$ cp .env.example .env\n\n# instalar dependências\n$ yarn install\n\n# iniciar aplicação\n$ yarn dev\n```\n\n## Endpoints\n\n- [x] Enviar SMS:\n\n```javascript\npost('/sms/create');\n{\n  \"recipient\": \"5511941439844\",\n  \"text\": \"Hello!\"\n}\n```\n\n- [x] Encurtar link / listar links:\n\n```javascript\npost('/shorts/create')\n{\n  \"data\": {\n    \"fullLink\": \"https://google.com.br\"\n  }\n}\n```\n\n```javascript\npost('/shorts/list')\n{\n  \"criteria\": {\n    \"status\": \"1\",\n    \"moderatorStatus\": \"1\"\n  },\n  \"pagination\": {\n    \"currentPage\": \"1\",\n    \"pageSize\": \"10\"\n  },\n  \"sort\": {\n    \"clickCnt\": \"DESC\"\n  }\n}\n```\n\nImporte as rotas no seu [Insomnia](https://insomnia.rest/run/?label=backend-sms\u0026uri=https://raw.githubusercontent.com/caioagiani/backend-sms/master/insomnia.json).\n\n## Testes\n\n```javascript\n$ jest --setupFiles dotenv/config --detectOpenHandles --forceExit\n PASS  __tests__/short.test.js\n  API Requests\n    ✓ should send an sms (865 ms)\n    ✓ should create a shortened link (477 ms)\n    ✓ should list all shortened links (317 ms)\n\nTest Suites: 1 passed, 1 total\nTests:       3 passed, 3 total\nSnapshots:   0 total\nTime:        2.871 s, estimated 3 s\nRan all test suites.\nDone in 3.29s.\n```\n\n## Colaboradores\n\n- [@juan-patrick](https://github.com/juan-patrick) - Frontend\n- [@caioagiani](https://github.com/caioagiani) - Backend\n\n## Contato\n\n- [LinkedIn](https://www.linkedin.com/in/caioagiani)\n- [caio.agiani14@gmail.com](mailto:caio.agiani14@gmail.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaioagiani%2Fbackend-sms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaioagiani%2Fbackend-sms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaioagiani%2Fbackend-sms/lists"}