Skip to content

Commit

Permalink
added count option to random api call
Browse files Browse the repository at this point in the history
  • Loading branch information
eoconnor6797 committed Feb 24, 2018
1 parent 395b0ac commit 1e29086
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/unsplash/photos.ex
Expand Up @@ -64,7 +64,7 @@ defmodule Unsplash.Photos do
* `count` -The number of photos to return. (Default: 1; max: 30)
"""
def random(opts \\ []) do
params = [:collections, :featured, :username, :query, :w, :h, :orientation, :per_page, :page]
params = [:collections, :featured, :username, :query, :w, :h, :orientation, :per_page, :page, :count]
ResultStream.new("/photos/random", params, opts)
end

Expand Down

0 comments on commit 1e29086

Please sign in to comment.