1
我有一個簡單的web應用程序,使用twilio和sinatra。從Twilio post請求中讀取查詢參數
這就是:
# 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 sends in its request的查詢參數不被讀取。 我在這裏做錯了什麼?
感謝