'Send a message to a user.'

def send_message(self, message='', **kwargs):

    title = kwargs.get(ATTR_TITLE)
    token_response = _authenticate(self._consumer_key, self._consumer_secret)
    if (token_response is False):
        _LOGGER.exception('Error    obtaining    authorization    from    Telstra    API')
        return
    if title:
        text = '{}    {}'.format(title, message)
    else:
        text = message
    message_data = {'to': self._phone_number, 'body': text}
    message_resource = 'https://api.telstra.com/v1/sms/messages'
    message_headers = {HTTP_HEADER_CONTENT_TYPE: CONTENT_TYPE_JSON, 'Authorization': ('Bearer    ' + token_response['access_token'])}
    message_response = requests.post(message_resource, headers=message_headers, json=message_data, timeout=10)
    if (message_response.status_code != 202):
        _LOGGER.exception('Failed    to    send    SMS.    Status    code:    %d', message_response.status_code)
