Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/Images/v2/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public function getImages(): array
'marker' => $this->params->marker(),
'sortKey' => $this->params->sortKey(),
'sortDir' => $this->params->sortDir(),
'sort' => $this->params->sort(),
'name' => $this->params->queryName(),
'visibility' => $this->params->queryVisibility(),
'memberStatus' => $this->params->queryMemberStatus(),
Expand Down
13 changes: 13 additions & 0 deletions src/Images/v2/Params.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ public function queryMemberStatus(): array
return [
'location' => self::QUERY,
'type' => self::STRING_TYPE,
'sentAs' => 'member_status',
'description' => 'Shows only images with this member status.',
'enum' => ['accepted', 'pending', 'rejected', 'all'],
];
Expand Down Expand Up @@ -142,6 +143,7 @@ public function querySizeMin(): array
return [
'location' => self::QUERY,
'type' => self::INT_TYPE,
'sentAs' => 'size_min',
'description' => 'Shows only images with this minimum image size.',
];
}
Expand All @@ -151,6 +153,7 @@ public function querySizeMax(): array
return [
'location' => self::QUERY,
'type' => self::INT_TYPE,
'sentAs' => 'size_max',
'description' => 'Shows only images with this maximum image size.',
];
}
Expand All @@ -164,6 +167,16 @@ public function queryTag(): array
];
}

public function sort(): array
{
return [
'location' => self::QUERY,
'type' => self::STRING_TYPE,
'description' => 'Sorts the response by one or more attribute and sort direction combinations. You can ' .
'also set multiple sort keys and directions. Default direction is desc.'
];
}

public function contentType(): array
{
return [
Expand Down