{"action":"created","issue":{"url":"https://api.github.com/repos/nyaruka/rapidpro/issues/638","repository_url":"https://api.github.com/repos/nyaruka/rapidpro","labels_url":"https://api.github.com/repos/nyaruka/rapidpro/issues/638/labels{/name}","comments_url":"https://api.github.com/repos/nyaruka/rapidpro/issues/638/comments","events_url":"https://api.github.com/repos/nyaruka/rapidpro/issues/638/events","html_url":"https://github.com/nyaruka/rapidpro/pull/638","id":148908461,"number":638,"title":"New media format, support for twilio, telegram","user":{"login":"ericnewcomer","id":211652,"avatar_url":"https://avatars.githubusercontent.com/u/211652?v=3","gravatar_id":"","url":"https://api.github.com/users/ericnewcomer","html_url":"https://github.com/ericnewcomer","followers_url":"https://api.github.com/users/ericnewcomer/followers","following_url":"https://api.github.com/users/ericnewcomer/following{/other_user}","gists_url":"https://api.github.com/users/ericnewcomer/gists{/gist_id}","starred_url":"https://api.github.com/users/ericnewcomer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericnewcomer/subscriptions","organizations_url":"https://api.github.com/users/ericnewcomer/orgs","repos_url":"https://api.github.com/users/ericnewcomer/repos","events_url":"https://api.github.com/users/ericnewcomer/events{/privacy}","received_events_url":"https://api.github.com/users/ericnewcomer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-17T01:28:26Z","updated_at":"2016-04-18T13:01:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/nyaruka/rapidpro/pulls/638","html_url":"https://github.com/nyaruka/rapidpro/pull/638","diff_url":"https://github.com/nyaruka/rapidpro/pull/638.diff","patch_url":"https://github.com/nyaruka/rapidpro/pull/638.patch"},"body":"Changes to support multimedia surveys.\r\n\r\n* Adds hooks for simulating media actions (like submitting a photo, video, etc) when simulating survey flows in the flow editor.\r\n* Renames `Value.recording_value` to `Value.media_value`\r\n* Renames `Msg.recording_url` to `Msg.media`\r\n* Adds MediaEndpoint to API to submit media collected externally\r\n* Adds viewers on contact history for video (videojs), images (featherlight), and geo points (osm links)\r\n* Change media storage to be file based in the org since they are media (not flow or run) based.\r\n* Inbound IVR recordings stored using new media approach\r\n* Move Twilio MMS to support new storage\r\n* Add media support to Telegram channel (documents, locations, contacts, photos, videos, audio, pusheen)\r\n\r\nAdopts a new scheme for media to include it's type: `media_type:media_path`\r\n**For example:**\r\n_geo:lat,lng\r\naudio/x-wav:http..\r\nvideo/mpeg:http..\r\nimage/jpeg:http.._\r\n\r\nMedia is stored according to this example:\r\n`/media/org/3/media/0a59/0a59ed4a-0cc6-4bbc-8d4a-87a30031e8ec.wav`\r\n\r\nApologies for PR epic :("},"comment":{"url":"https://api.github.com/repos/nyaruka/rapidpro/issues/comments/211371120","html_url":"https://github.com/nyaruka/rapidpro/pull/638#issuecomment-211371120","issue_url":"https://api.github.com/repos/nyaruka/rapidpro/issues/638","id":211371120,"user":{"login":"nicpottier","id":168067,"avatar_url":"https://avatars.githubusercontent.com/u/168067?v=3","gravatar_id":"","url":"https://api.github.com/users/nicpottier","html_url":"https://github.com/nicpottier","followers_url":"https://api.github.com/users/nicpottier/followers","following_url":"https://api.github.com/users/nicpottier/following{/other_user}","gists_url":"https://api.github.com/users/nicpottier/gists{/gist_id}","starred_url":"https://api.github.com/users/nicpottier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicpottier/subscriptions","organizations_url":"https://api.github.com/users/nicpottier/orgs","repos_url":"https://api.github.com/users/nicpottier/repos","events_url":"https://api.github.com/users/nicpottier/events{/privacy}","received_events_url":"https://api.github.com/users/nicpottier/received_events","type":"User","site_admin":false},"created_at":"2016-04-18T13:01:57Z","updated_at":"2016-04-18T13:01:57Z","body":"doit"}}