Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Orientation parameter #76

Closed
efehelvaci opened this issue Sep 22, 2018 · 3 comments
Closed

Orientation parameter #76

efehelvaci opened this issue Sep 22, 2018 · 3 comments

Comments

@efehelvaci
Copy link

Orientation parameter is added to the API but seems like we can't use it with this library, since there is no such parameter for the functions.

@maxnordlund
Copy link

I found this, which I believe resolves this issue (line 87):

getRandomPhoto: (options = {}) => {
const url = "/photos/random";
const category = options.category || [];
const collections = options.collections || [];
const query = {
featured: options.featured,
username: options.username,
orientation: options.orientation,
category: category.join(),
collections: collections.join(),
query: options.query,

@emao
Copy link

emao commented Jul 9, 2019

Any updates on adding this as a search parameter?

@lukechesser
Copy link
Member

This is supported in 6.0 #112

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants