{"action":"created","issue":{"url":"https://api.github.com/repos/redcross/smoke-alarm-portal/issues/121","repository_url":"https://api.github.com/repos/redcross/smoke-alarm-portal","labels_url":"https://api.github.com/repos/redcross/smoke-alarm-portal/issues/121/labels{/name}","comments_url":"https://api.github.com/repos/redcross/smoke-alarm-portal/issues/121/comments","events_url":"https://api.github.com/repos/redcross/smoke-alarm-portal/issues/121/events","html_url":"https://github.com/redcross/smoke-alarm-portal/issues/121","id":110996075,"number":121,"title":"SMS Requests","user":{"login":"cecilia-donnelly","id":1497818,"avatar_url":"https://avatars.githubusercontent.com/u/1497818?v=3","gravatar_id":"","url":"https://api.github.com/users/cecilia-donnelly","html_url":"https://github.com/cecilia-donnelly","followers_url":"https://api.github.com/users/cecilia-donnelly/followers","following_url":"https://api.github.com/users/cecilia-donnelly/following{/other_user}","gists_url":"https://api.github.com/users/cecilia-donnelly/gists{/gist_id}","starred_url":"https://api.github.com/users/cecilia-donnelly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cecilia-donnelly/subscriptions","organizations_url":"https://api.github.com/users/cecilia-donnelly/orgs","repos_url":"https://api.github.com/users/cecilia-donnelly/repos","events_url":"https://api.github.com/users/cecilia-donnelly/events{/privacy}","received_events_url":"https://api.github.com/users/cecilia-donnelly/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"cecilia-donnelly","id":1497818,"avatar_url":"https://avatars.githubusercontent.com/u/1497818?v=3","gravatar_id":"","url":"https://api.github.com/users/cecilia-donnelly","html_url":"https://github.com/cecilia-donnelly","followers_url":"https://api.github.com/users/cecilia-donnelly/followers","following_url":"https://api.github.com/users/cecilia-donnelly/following{/other_user}","gists_url":"https://api.github.com/users/cecilia-donnelly/gists{/gist_id}","starred_url":"https://api.github.com/users/cecilia-donnelly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cecilia-donnelly/subscriptions","organizations_url":"https://api.github.com/users/cecilia-donnelly/orgs","repos_url":"https://api.github.com/users/cecilia-donnelly/repos","events_url":"https://api.github.com/users/cecilia-donnelly/events{/privacy}","received_events_url":"https://api.github.com/users/cecilia-donnelly/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/redcross/smoke-alarm-portal/milestones/9","html_url":"https://github.com/redcross/smoke-alarm-portal/milestones/SMS%20Requests","labels_url":"https://api.github.com/repos/redcross/smoke-alarm-portal/milestones/9/labels","id":1443159,"number":9,"title":"SMS Requests","description":"","creator":{"login":"cecilia-donnelly","id":1497818,"avatar_url":"https://avatars.githubusercontent.com/u/1497818?v=3","gravatar_id":"","url":"https://api.github.com/users/cecilia-donnelly","html_url":"https://github.com/cecilia-donnelly","followers_url":"https://api.github.com/users/cecilia-donnelly/followers","following_url":"https://api.github.com/users/cecilia-donnelly/following{/other_user}","gists_url":"https://api.github.com/users/cecilia-donnelly/gists{/gist_id}","starred_url":"https://api.github.com/users/cecilia-donnelly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cecilia-donnelly/subscriptions","organizations_url":"https://api.github.com/users/cecilia-donnelly/orgs","repos_url":"https://api.github.com/users/cecilia-donnelly/repos","events_url":"https://api.github.com/users/cecilia-donnelly/events{/privacy}","received_events_url":"https://api.github.com/users/cecilia-donnelly/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2015-12-03T23:15:35Z","updated_at":"2015-12-03T23:15:59Z","due_on":"2016-01-15T06:00:00Z","closed_at":null},"comments":23,"created_at":"2015-10-12T15:17:25Z","updated_at":"2016-03-29T21:07:48Z","closed_at":null,"body":"Users should be able to enter requests for smoke alarms via SMS.  The workflow for this will be as follows:\r\n\r\nA. The requester texts some pre-determined/advertised string to a national toll-free number (e.g. 1-800-SMK-ALRM). \r\n\r\nB. The app programmatically responds to the requester with a series of texts instructing them to send (1) their name, (2) their address, (3) their phone number.  These texts will result in the user sending and storing all the same information that he or she would have submitted on the website.  Here is a proposed script for these texts (they will also be translated for Spanish speakers):\r\n\r\n> 1: Welcome to the smoke alarm request system (para español, texto \"ES\").  We need to ask four questions to process your request.  Please text back the answer to each and wait for the next question.  First, what is your name?\r\n2: What is your address, including the unit number, city, state, and zipcode?\r\n\r\n(We'll parse the response here and if some of this is missing, text back something like, \"Uh-oh, we didn't quite get that.  What is your `<missing piece of information>`?\")\r\n\r\n> 3: Is the number you're texting from the best way to get in touch with you?  If so, text YES.  Otherwise, please text a phone number where we can reach you.\r\n4: One last question: is there an email address we can use to contact you?  If not, text NONE.  If yes, please text us the email address.\r\n5: Thank you for your smoke alarm request!  Your request number is  `<serial number>`.  To contact your local Red Cross about this request, call `<local phone number>`.  We will be in touch with you to schedule an installation.\r\n\r\nC. Once we have all the request data, we send them a confirmation text with their serial number and the phone number of their local Red Cross.\r\n\r\nD. The SMS requests will be stored in the same database as the requests submitted through the web site, so Red Cross users who are scheduling installations will be able to see them all through the web site's admin interface.  The database will keep track of whether each request came in through the web site or via SMS.\r\n"},"comment":{"url":"https://api.github.com/repos/redcross/smoke-alarm-portal/issues/comments/203105389","html_url":"https://github.com/redcross/smoke-alarm-portal/issues/121#issuecomment-203105389","issue_url":"https://api.github.com/repos/redcross/smoke-alarm-portal/issues/121","id":203105389,"user":{"login":"cecilia-donnelly","id":1497818,"avatar_url":"https://avatars.githubusercontent.com/u/1497818?v=3","gravatar_id":"","url":"https://api.github.com/users/cecilia-donnelly","html_url":"https://github.com/cecilia-donnelly","followers_url":"https://api.github.com/users/cecilia-donnelly/followers","following_url":"https://api.github.com/users/cecilia-donnelly/following{/other_user}","gists_url":"https://api.github.com/users/cecilia-donnelly/gists{/gist_id}","starred_url":"https://api.github.com/users/cecilia-donnelly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cecilia-donnelly/subscriptions","organizations_url":"https://api.github.com/users/cecilia-donnelly/orgs","repos_url":"https://api.github.com/users/cecilia-donnelly/repos","events_url":"https://api.github.com/users/cecilia-donnelly/events{/privacy}","received_events_url":"https://api.github.com/users/cecilia-donnelly/received_events","type":"User","site_admin":false},"created_at":"2016-03-29T21:07:48Z","updated_at":"2016-03-29T21:07:48Z","body":"After Kevin's help, we're now receiving the `POST` requests from Twilio which presumably hold the status of our sent messages.  However, as detailed in #174, our server isn't accepting these `POST` requests.  I need to fix #174 in order to handle errors from Twilio.\r\n\r\nHowever, all of our sent text messages through Twilio show status as \"delivered,\" so even fixing this problem will not necessarily cover all cases where text messages are not truly delivered."}}