'Initialize the service.'

def __init__(self, default_channel, api_token, username, icon, is_allowed_path):

    from slacker import Slacker
    self._default_channel = default_channel
    self._api_token = api_token
    self._username = username
    self._icon = icon
    if (self._username or self._icon):
        self._as_user = False
    else:
        self._as_user = True
    self.is_allowed_path = is_allowed_path
    self.slack = Slacker(self._api_token)
    self.slack.auth.test()
