Navigation Menu

Skip to content

Commit

Permalink
fixing directoryRooms method so that it actually expects an options o…
Browse files Browse the repository at this point in the history
…bject, and documented the skip option
  • Loading branch information
Mac Angell committed Nov 6, 2013
1 parent bc75532 commit 124f407
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -236,7 +236,8 @@ Get a directory of rooms.

* `limit` - The number of rooms to return
* `section_aware`
* `sort` - What to sort by
* `sort` - What to sort by,
* `skip` - The number of rooms to skip

### stalk ( userId:string [, allInformation=false:bool ], callback:fn )

Expand Down
8 changes: 4 additions & 4 deletions lib/bot.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/bot.coffee
Expand Up @@ -379,8 +379,8 @@ class Bot
options.client = 'web'

query = []
for opt in options
query.push "#{opt}=#{encodeURIComponent(options[opt])}"
for opt,val of options
query.push "#{opt}=#{encodeURIComponent(val)}"

httpOptions =
host: 'turntable.fm'
Expand Down

0 comments on commit 124f407

Please sign in to comment.