Ruby on Rails:是否有任何 gem/插件可以帮助在多个短信网关之间切换
我正在寻找任何有助于在多个短信网关之间切换的 gem 或插件。
谢谢
I am looking for any gem or plugin which will help in switching between multiple sms gateways.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我找到了 gem action_sms ,它可以通过为网关提供商编写适配器来在不同的 SMS_gateway 提供商之间切换。
gem 的自述文件中也给出了实现适配器的非常简单的示例。
I have found the gem action_sms which can be used to switch between the different SMS_gateway providers, by writing adapter for the gateway provider.
Its pretty straight forward to implement adapters example is also given in the gem's readme file.
我不知道您正在使用哪种 SMS 服务,但
SMS on Rails 作者:Girish Anand 和 Laksh
有一种可以同时连接到 Email Gateway 和 Clickatell 的产品。也许您可以扩展该代码以满足您的需求。
希望这有帮助! ;)
I don't know exactly which SMS services you are using but
SMS on Rails By:Girish Anand and Laksh
have one that can connect to both Email Gateway and Clickatell. Perhaps you can extend that code to suit your needs.
Hope this helps! ;)