我有一个使用 twilio 和 sinatra 的简单 Web 应用程序。
这里是:
# Responds to POSTs to http://yourapp.com/call
require 'rubygems'
require 'sinatra'
post '/call' do
to = params[:To]
puts to
"<Response><Say>Congratulations! You got through</Say></Response>"
end
调用通过,但twilio 在其请求中作为查询参数发送的“to”字段未被读取。我在这里做错了什么?
谢谢