{"id":20170218,"url":"https://github.com/fabrix-app/spool-twilio","last_synced_at":"2026-05-23T16:43:48.774Z","repository":{"id":95882873,"uuid":"162049808","full_name":"fabrix-app/spool-twilio","owner":"fabrix-app","description":"Spool - Twilio","archived":false,"fork":false,"pushed_at":"2018-12-16T23:24:08.000Z","size":70,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-13T15:27:05.634Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/fabrix-app.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","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":"2018-12-16T23:16:22.000Z","updated_at":"2019-02-02T19:04:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"cd85b8f1-505a-4435-8169-4199c458f07d","html_url":"https://github.com/fabrix-app/spool-twilio","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabrix-app%2Fspool-twilio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabrix-app%2Fspool-twilio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabrix-app%2Fspool-twilio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabrix-app%2Fspool-twilio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabrix-app","download_url":"https://codeload.github.com/fabrix-app/spool-twilio/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241605820,"owners_count":19989612,"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":[],"created_at":"2024-11-14T01:17:44.839Z","updated_at":"2025-11-29T16:03:08.260Z","avatar_url":"https://github.com/fabrix-app.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spool-twilio\n\n[![Gitter][gitter-image]][gitter-url]\n[![NPM version][npm-image]][npm-url]\n[![Build Status][ci-image]][ci-url]\n[![Test Coverage][coverage-image]][coverage-url]\n[![Dependency Status][daviddm-image]][daviddm-url]\n[![Follow @FabrixApp on Twitter][twitter-image]][twitter-url]\n\nTwilio Spool for sending SMS messages\n\n\n## Install\n```sh\n$ npm install @fabrix/spool-twilio --save\n```\n\n## Configure\n\nAdd TwilioSpool to your Fabrix App:\n```js\n// config/main.ts\nexport const main = {\n  spools: [\n    // ... other spool\n    require('@fabrix/spool-twilio').TwilioSpool\n  ]\n}\n```\n\nAdd configuration for twilio: \n```js\n// config/twilio.ts\nexport const twilio = {\n  /**\n   * The \"account sid\" associated with your Twilio account.\n   */\n  accountSid: null,\n  /**\n   * The \"auth token\" associated with your Twilio account.\n   */\n  authToken: null,\n  /**\n   * This is the 'From' phone number you'd like to use to send the SMS.\n   */\n  from: null\n}\n```\n\n## Usage\nUse the `TwilioService` like this (from controllers/policies/services) : \n```js\n//Send basic SMS\nthis.app.services.TwilioService.sendSMSTo('toNumber', 'message to send').then(response =\u003e {\n         this.app.log.debug('ok')\n       }).catch(err =\u003e {\n         this.app.log.error(err)\n       })\n       \n//Send basic SMS with media URL\nthis.app.services.TwilioService.sendSMSTo('toNumber', 'message to send', {mediaUrl: 'http://myurl.fr'}).then(response =\u003e {\n         this.app.log.debug('ok')\n       }).catch(err =\u003e {\n         this.app.log.error(err)\n       })\n\n```\n\n## Contributing\nWe love contributions! Please check out our [Contributor's Guide](https://github.com/trailsjs/trails/blob/master/.github/CONTRIBUTING.md) for more\ninformation on how our projects are organized and how to get started.\n\n## License\n[MIT](https://github.com/fabrix-app/spool-twilio/blob/master/LICENSE)\n\n[npm-image]: https://img.shields.io/npm/v/@fabrix/spool-twilio.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/@fabrix/spool-twilio\n[ci-image]: https://img.shields.io/circleci/project/github/fabrix-app/spool-twilio/master.svg\n[ci-url]: https://circleci.com/gh/fabrix-app/spool-twilio/tree/master\n[daviddm-image]: http://img.shields.io/david/fabrix-app/spool-twilio.svg?style=flat-square\n[daviddm-url]: https://david-dm.org/fabrix-app/spool-twilio\n[gitter-image]: http://img.shields.io/badge/+%20GITTER-JOIN%20CHAT%20%E2%86%92-1DCE73.svg?style=flat-square\n[gitter-url]: https://gitter.im/fabrix-app/fabrix\n[twitter-image]: https://img.shields.io/twitter/follow/FabrixApp.svg?style=social\n[twitter-url]: https://twitter.com/FabrixApp\n[coverage-image]: https://img.shields.io/codeclimate/coverage/github/fabrix-app/spool-twilio.svg?style=flat-square\n[coverage-url]: https://codeclimate.com/github/fabrix-app/spool-twilio/coverage\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabrix-app%2Fspool-twilio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabrix-app%2Fspool-twilio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabrix-app%2Fspool-twilio/lists"}