 
     login: ->
         @logger.info 'Logging in...'
-        @_apiCall 'POST', '/users/login', {name: @group, email: @email, password: @password}, @_onLogin
+        @_apiCall 'POST', usersRoute + '/login', {name: @group, email: @email, password: @password}, @_onLogin
 
     _onLogin: (data, headers) =>
         if data

        @channels[id]

    customMessage: (postData, channelID) ->
        @_apiCall 'POST', '/channels/' + channelID + '/create', postData, (data, header) =>
            @logger.debug 'Posted custom message.'
            return true


            user_id: @self.id
            channel_id: channelID

        @_apiCall 'POST', @channelRoute(channelID) + '/posts/create', postData, (data, header) =>
            @logger.debug 'Posted message.'
            return true

