mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-13 09:20:38 -07:00
working on twilio integration
This commit is contained in:
parent
8b19e1fac2
commit
730d6cbbde
2 changed files with 2 additions and 6 deletions
|
|
@ -17,12 +17,8 @@ class Attempt < ApplicationRecord
|
|||
body: "#{question.text}\n\r#{question.option1}: Reply 1\n\r#{question.option2}: Reply 2\n\r#{question.option3}: Reply 3\n\r#{question.option4}: Reply 4\n\r#{question.option5}: Reply 5"
|
||||
)
|
||||
|
||||
puts message.inspect
|
||||
puts message.try(:path)
|
||||
puts message.try(:sid)
|
||||
# message.path.split('/').last
|
||||
|
||||
update_attributes(sent_at: Time.new, twilio_sid: message.sid)
|
||||
recipient.update_attributes(phone: client.account.messages.get(message.sid).to)
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue