【文件属性】:
文件名称:twilio.cr:访问Twilio API的库
文件大小:6KB
文件格式:ZIP
更新时间:2021-05-02 02:19:37
Crystal
twilio.cr-访问Twilio API的库
安装
将此添加到应用程序的shard.yml :
dependencies :
twilio :
github : bitstopco/twilio.cr
在您的终端运行中:
shards install
用法
安装后,可以通过创建客户端对象来使用twilio.cr:
require " twilio "
account_sid = " your_account_sid "
auth_token = " your_auth_token "
client = Twilio :: Client .new(account_sid, auth_token)
可以所有必需的键。
发送和短信
# client.messages_create(from, to, message)
client.message
【文件预览】:
twilio.cr-master
----.travis.yml(18B)
----shard.yml(166B)
----LICENSE(1KB)
----src()
--------twilio()
--------twilio.cr(101B)
--------mapping()
----spec()
--------twilio_spec.cr(119B)
--------spec_helper.cr(39B)
----.gitignore(149B)
----Makefile(74B)
----README.md(1KB)
----.editorconfig(150B)