Public Member Functions | |
| def | __init__ (self, hass, consumer_key, consumer_secret, access_token_key, access_token_secret, username) |
| None | check_status_until_done (self, media_id, callback, *args) |
| def | media_info (self, media_path) |
| def | send_message (self, message="", **kwargs) |
| def | send_message_callback (self, message, user, media_id=None) |
| def | upload_media_append (self, chunk, media_id, segment_id) |
| def | upload_media_chunked (self, file, total_bytes, media_id) |
| def | upload_media_finalize (self, media_id) |
| def | upload_media_init (self, media_type, media_category, total_bytes) |
| None | upload_media_then_callback (self, callback, media_path=None) |
Static Public Member Functions | |
| def | log_bytes_sent (bytes_sent, total_bytes) |
| def | log_error_resp (resp) |
| def | log_error_resp_append (resp) |
| def | media_category_for_type (media_type) |
Public Attributes | |
| api | |
| default_user | |
| hass | |
Implementation of a notification service for the Twitter service.
| def homeassistant.components.twitter.notify.TwitterNotificationService.__init__ | ( | self, | |
| hass, | |||
| consumer_key, | |||
| consumer_secret, | |||
| access_token_key, | |||
| access_token_secret, | |||
| username | |||
| ) |
| None homeassistant.components.twitter.notify.TwitterNotificationService.check_status_until_done | ( | self, | |
| media_id, | |||
| callback, | |||
| * | args | ||
| ) |
|
static |
|
static |
|
static |
|
static |
| def homeassistant.components.twitter.notify.TwitterNotificationService.media_info | ( | self, | |
| media_path | |||
| ) |
| def homeassistant.components.twitter.notify.TwitterNotificationService.send_message | ( | self, | |
message = "", |
|||
| ** | kwargs | ||
| ) |
| def homeassistant.components.twitter.notify.TwitterNotificationService.send_message_callback | ( | self, | |
| message, | |||
| user, | |||
media_id = None |
|||
| ) |
| def homeassistant.components.twitter.notify.TwitterNotificationService.upload_media_append | ( | self, | |
| chunk, | |||
| media_id, | |||
| segment_id | |||
| ) |
| def homeassistant.components.twitter.notify.TwitterNotificationService.upload_media_chunked | ( | self, | |
| file, | |||
| total_bytes, | |||
| media_id | |||
| ) |
| def homeassistant.components.twitter.notify.TwitterNotificationService.upload_media_finalize | ( | self, | |
| media_id | |||
| ) |
| def homeassistant.components.twitter.notify.TwitterNotificationService.upload_media_init | ( | self, | |
| media_type, | |||
| media_category, | |||
| total_bytes | |||
| ) |
| None homeassistant.components.twitter.notify.TwitterNotificationService.upload_media_then_callback | ( | self, | |
| callback, | |||
media_path = None |
|||
| ) |
| homeassistant.components.twitter.notify.TwitterNotificationService.api |
| homeassistant.components.twitter.notify.TwitterNotificationService.default_user |
| homeassistant.components.twitter.notify.TwitterNotificationService.hass |