0
每當我收到我的Sinatra應用程序的文本消息時,我都會收到Twilio中的模式驗證變暖。什麼可能導致這個?Sinatra - Twilio模式驗證警告
post '/receive_sms' do
content_type 'text/xml'
@time = Time.now.strftime('%Y-%m-%d %H:%M:%S')
@body = params["Body"].to_s
@sid = params["MessageSid"].to_s
@sender = params["From"].delete('+')
puts @time
puts @body
puts @sender
puts @sid
CSV.open("/home/ubuntu/Applications/Twilio_SMS/smsLog.csv", "a") do |csv|
csv << [@sid, @sender, @body, @time]
end
'done'
end