{"action":"created","issue":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/8282","repository_url":"https://api.github.com/repos/home-assistant/home-assistant","labels_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/8282/labels{/name}","comments_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/8282/comments","events_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/8282/events","html_url":"https://github.com/home-assistant/home-assistant/pull/8282","id":239982008,"number":8282,"title":"Allow Twitter notifications to include media","user":{"login":"MikeChristianson","id":1694387,"avatar_url":"https://avatars2.githubusercontent.com/u/1694387?v=3","gravatar_id":"","url":"https://api.github.com/users/MikeChristianson","html_url":"https://github.com/MikeChristianson","followers_url":"https://api.github.com/users/MikeChristianson/followers","following_url":"https://api.github.com/users/MikeChristianson/following{/other_user}","gists_url":"https://api.github.com/users/MikeChristianson/gists{/gist_id}","starred_url":"https://api.github.com/users/MikeChristianson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikeChristianson/subscriptions","organizations_url":"https://api.github.com/users/MikeChristianson/orgs","repos_url":"https://api.github.com/users/MikeChristianson/repos","events_url":"https://api.github.com/users/MikeChristianson/events{/privacy}","received_events_url":"https://api.github.com/users/MikeChristianson/received_events","type":"User","site_admin":false},"labels":[{"id":527871105,"url":"https://api.github.com/repos/home-assistant/home-assistant/labels/cla-signed","name":"cla-signed","color":"008000","default":false},{"id":553421020,"url":"https://api.github.com/repos/home-assistant/home-assistant/labels/component:%20notify","name":"component: notify","color":"ededed","default":false},{"id":514133636,"url":"https://api.github.com/repos/home-assistant/home-assistant/labels/platform","name":"platform","color":"0e8a16","default":false},{"id":538290355,"url":"https://api.github.com/repos/home-assistant/home-assistant/labels/platform:%20notify.twitter","name":"platform: notify.twitter","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-07-02T01:14:47Z","updated_at":"2017-07-11T02:57:56Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/home-assistant/home-assistant/pulls/8282","html_url":"https://github.com/home-assistant/home-assistant/pull/8282","diff_url":"https://github.com/home-assistant/home-assistant/pull/8282.diff","patch_url":"https://github.com/home-assistant/home-assistant/pull/8282.patch"},"body":"**Allow Twitter notifications to include media.** \r\n\r\nThe notifier uses the Twitter-recommended async chunked media/upload approach and tries to convey the correct mime type of the media. The implementation is based on https://github.com/geduldig/TwitterAPI/blob/master/examples/upload_video.py.\r\n\r\n```yaml\r\nnotify:\r\n  - name: twitter\r\n    platform: twitter\r\n    consumer_key: …\r\n    consumer_secret: …\r\n    access_token: …\r\n    access_token_secret: …\r\n\r\nautomation twitter:\r\n  alias: Send a test message\r\n  initial_state: False\r\n  hide_entity: False\r\n  trigger:\r\n    platform: time\r\n    seconds: 00\r\n  action:\r\n    - service: notify.twitter\r\n      data:\r\n        message: \"Test at {{ now().strftime('%I:%M:%S %p') }}.\"\r\n        data:\r\n          media: /tmp/my-awesome-video.mp4\r\n    - service: homeassistant.turn_off\r\n      entity_id: automation.send_a_test_message\r\n```"},"comment":{"url":"https://api.github.com/repos/home-assistant/home-assistant/issues/comments/314309102","html_url":"https://github.com/home-assistant/home-assistant/pull/8282#issuecomment-314309102","issue_url":"https://api.github.com/repos/home-assistant/home-assistant/issues/8282","id":314309102,"user":{"login":"balloob","id":1444314,"avatar_url":"https://avatars0.githubusercontent.com/u/1444314?v=3","gravatar_id":"","url":"https://api.github.com/users/balloob","html_url":"https://github.com/balloob","followers_url":"https://api.github.com/users/balloob/followers","following_url":"https://api.github.com/users/balloob/following{/other_user}","gists_url":"https://api.github.com/users/balloob/gists{/gist_id}","starred_url":"https://api.github.com/users/balloob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balloob/subscriptions","organizations_url":"https://api.github.com/users/balloob/orgs","repos_url":"https://api.github.com/users/balloob/repos","events_url":"https://api.github.com/users/balloob/events{/privacy}","received_events_url":"https://api.github.com/users/balloob/received_events","type":"User","site_admin":false},"created_at":"2017-07-11T02:57:56Z","updated_at":"2017-07-11T02:57:56Z","body":"Awesome! 🐬  🎉 "}}
{"actor":{"display_login":"balloob"}}