'Send a message to a user.'

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

    data = {'messages': [{'source': 'hass.notify', 'from': self.recipient, 'to': self.recipient, 'body': message}]}
    api_url = '{}/sms/send'.format(BASE_API_URL)
    resp = requests.post(api_url, data=json.dumps(data), headers=HEADERS, auth=(self.username, self.api_key), timeout=5)
    obj = json.loads(resp.text)
    response_msg = obj['response_msg']
    response_code = obj['response_code']
    if (resp.status_code != 200):
        _LOGGER.error('Error    %s    :    %s    (Code    %s)', resp.status_code, response_msg, response_code)
