Skip to content
This repository has been archived by the owner on Oct 29, 2019. It is now read-only.

Commit

Permalink
Add options for users.list (presence options allowed)
Browse files Browse the repository at this point in the history
  • Loading branch information
Japh committed Nov 8, 2015
1 parent f374d13 commit af86c62
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/api/users.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ class Users extends BaseClass
@validate.obj opts, [ 'user' ]
@request 'GET', @endpoints.info, opts, callback

list: (callback) ->
@request 'GET', @endpoints.list, {}, callback
list: (opts = {}, callback) ->
@validate.obj opts, [ 'user' ]
@request 'GET', @endpoints.list, opts, callback

setActive: (callback) ->
@request 'POST', @endpoints.setActive, {}, callback
Expand Down

0 comments on commit af86c62

Please sign in to comment.