unsplash / unsplash-php

👻 Official PHP wrapper for the Unsplash API
MIT License
411 stars 74 forks source link

Collection Retrieve Photos #72

Open apapazisis opened 6 years ago

apapazisis commented 6 years ago
$collection = Crew\Unsplash\Collection::find(integer $id);
$photos = $collection->photos($page, $per_page);

The retrieve photos of a collection returns an ArrayObject. Please make it to return a PageResult as you have at Search::photos as an example

lukechesser commented 6 years ago

@apapazisis thanks for reporting. If you have time, feel free to PR a change that ensures backwards compatibility

Dayjo commented 4 years ago

Just plus oneing my desire for this issue to be resolved too. 👍

I don't think I'm even able to use this at all as I'm unable to use getHeaders, getTotal, getTotalPages, getResults etc?