lib/Imgur/Api/Gallery.php
public function subredditGalleries($subreddit, $sort = 'time', $page = 0, $window = 'day')
    {
        $this->validateSortArgument($sort, ['top', 'time']);
        $this->validateWindowArgument($window, ['day', 'week', 'month', 'year', 'all']);

        return $this->get('gallery/r/' . $subreddit . '/' . $sort . '/' . $window . '/' . (int) $page);
    }
public function subredditGalleries($subreddit, $sort = 'time', $page = 0, $window = 'day')
    {
        $this->validateSortArgument($sort, ['top', 'time']);
        $this->validateWindowArgument($window, ['day', 'week', 'month', 'year', 'all']);

        return $this->get('gallery/r/' . $subreddit . '/' . $sort . '/' . $window . '/' . (int) $page);
    }
public function subredditGalleries ( $ subreddit , $ sort = 'time' , $ page = 0 , $ window = 'day' ) { $ this -> validateSortArgument ( $ sort , [ 'top' , 'time' ] ) ; $ this -> validateWindowArgument ( $ window , [ 'day' , 'week' , 'month' , 'year' , 'all' ] ) ; return $ this -> get ( 'gallery/r/' . $ subreddit . '/' . $ sort . '/' . $ window . '/' . ( int ) $ page ) ; }
View gallery images for a sub-reddit.

@param string $subreddit (e.g pics - A valid sub-reddit name)
@param string $sort      (top | time)
@param int    $page
@param string $window    (day | week | month | year | all)

@see https://api.imgur.com/endpoints/gallery#subreddit

@return array Gallery Image (@see https://api.imgur.com/models/gallery_image)
View gallery images for a sub - reddit .