{"id":23542315,"url":"https://github.com/scottswezey/twilio_magic_values","last_synced_at":"2025-05-15T06:11:40.895Z","repository":{"id":62430573,"uuid":"131444244","full_name":"scottswezey/twilio_magic_values","owner":"scottswezey","description":"Provide elixir apps with simple, pragmatic access to magic testing values for the Twilio API.","archived":false,"fork":false,"pushed_at":"2021-01-15T03:56:30.000Z","size":264,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-25T03:21:13.598Z","etag":null,"topics":["elixir","testing-tools","twilio","twilio-magic-values"],"latest_commit_sha":null,"homepage":"https://hex.pm/packages/twilio_magic_values","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scottswezey.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-28T21:08:37.000Z","updated_at":"2021-01-15T03:56:33.000Z","dependencies_parsed_at":"2022-11-01T20:18:35.119Z","dependency_job_id":null,"html_url":"https://github.com/scottswezey/twilio_magic_values","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottswezey%2Ftwilio_magic_values","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottswezey%2Ftwilio_magic_values/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottswezey%2Ftwilio_magic_values/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottswezey%2Ftwilio_magic_values/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scottswezey","download_url":"https://codeload.github.com/scottswezey/twilio_magic_values/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254283350,"owners_count":22045141,"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":["elixir","testing-tools","twilio","twilio-magic-values"],"created_at":"2024-12-26T06:11:25.155Z","updated_at":"2025-05-15T06:11:40.872Z","avatar_url":"https://github.com/scottswezey.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Twilio Magic Values\n\nProvides Elixir apps with simple, pragmatic access to [magic testing values](https://www.twilio.com/docs/iam/test-credentials) for the [Twilio](https://www.twilio.com) API. The module and function names help give you code that is easier to read and is less prone to typos. Automated tests in this project also ensure that you will know if the magic numbers ever change.\n\n## Installation\n\n- Update your `mix.exs` deps.\n\n```elixir\ndef deps do\n  [\n    ...,\n    {:twilio_magic_values, \"~\u003e 1.0\", only: :test}\n  ]\nend\n```\n\n- Run `mix deps.get`.\n- No need to modify the `applications` or `extra_applications` settings to use this project.\n\n## Pseudocode usage examples\n\nSee the docs for all available modules and methods for all known magic numbers.\n\n### Instead of testing a call from `+15005550001`\n\nUse: `TwilioMagicValues.Calling.invalid_caller_id/0`\n\n```elixir\nalias TwilioMagicValues.Calling\n\nmake_test_call(from: Calling.invalid_caller_id(),\n               to: Calling.invalid_recipient(),\n               ...)\n```\n\n---\n\n### Instead of testing a purchase for `+15005550000`\n\nUse: `TwilioMagicValues.NumberPurchasing.unavailable_phone_number/0`\n\n```elixir\nalias TwilioMagicValues.NumberPurchasing\n\nbuy_test_number(exactly: NumberPurchasing.unavailable_phone_number())\n```\n\n---\n\n### Instead of testing sending a message to `+15005550004`\n\nUse: `TwilioMagicValues.Messaging.blacklisted_recipient/0`\n\n```elixir\nalias TwilioMagicValues.Messaging\n\nsend_test_message(from: Messaging.valid_sender(),\n                  to: Messaging.blacklisted_recipient(),\n                  ...)\n```\n\n---\n\n## Project freshness: v1.0.7\n\n- **Latest development:** December 19, 2020\n- **Tests passed:** December 19, 2020\n\nThis project is versioned using the [SEMVER 2.0.0 rules](https://semver.org).\n\n## Resources\n\n- [Project documentation](https://hexdocs.pm/twilio_magic_values).\n- The Twilio docs for [test credentials and magic phone numbers](https://www.twilio.com/docs/iam/test-credentials).\n- A related [blog post](https://www.twilio.com/blog/2018/04/twilio-test-credentials-magic-numbers.html) by Twilio concerning test credentials and magic phone numbers.\n- I wrote about [mocking Twilio's webhooks](https://scottswezey.com/2020/12/20/mock-incoming-sms-messages-twilio/) in Paw.\n\n### Other useful Twilio projects written in Elixir\n\n- [ex_twilio](https://github.com/danielberkompas/ex_twilio)\n- [telephonist](https://github.com/danielberkompas/telephonist)\n- [ex_twiml](https://github.com/danielberkompas/ex_twiml)\n- Suggestions for this section are welcome. Please open an issue on GitHub.\n\n## Contributing\n\n- Issues and pull requests are welcome on [GitHub](https://github.com/scottswezey/twilio_magic_values).\n- Twilio doesn't currently provide magic numbers for other parts of their APIs. If they add a new magic number, please open an issue or pull request.\n- See [`CONTRIBUTING.md`](https://github.com/scottswezey/twilio_magic_values/blob/master/CONTRIBUTING.md)\n\n## License\n\nGPL v3; See `LICENSE` file.\n\n## Author\n\nWritten by [Scott Swezey](https://github.com/scottswezey).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscottswezey%2Ftwilio_magic_values","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscottswezey%2Ftwilio_magic_values","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscottswezey%2Ftwilio_magic_values/lists"}