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

        return $this->get('topics/' . $topicId . '/' . $sort . '/' . $window . '/' . $page);
    }
public function galleryTopic($topicId, $sort = 'viral', $page = 0, $window = 'week')
    {
        $this->validateSortArgument($sort, ['viral', 'top', 'time', 'rising']);
        $this->validateWindowArgument($window, ['day', 'week', 'month', 'year', 'all']);

        return $this->get('topics/' . $topicId . '/' . $sort . '/' . $window . '/' . $page);
    }
public function galleryTopic ( $ topicId , $ sort = 'viral' , $ page = 0 , $ window = 'week' ) { $ this -> validateSortArgument ( $ sort , [ 'viral' , 'top' , 'time' , 'rising' ] ) ; $ this -> validateWindowArgument ( $ window , [ 'day' , 'week' , 'month' , 'year' , 'all' ] ) ; return $ this -> get ( 'topics/' . $ topicId . '/' . $ sort . '/' . $ window . '/' . $ page ) ; }
View gallery items for a topic.

@param string $topicId The ID or URL-formatted name of the topic. If using a topic's name, replace its spaces with underscores (Mother's_Day)
@param string $sort    (viral | top | time)
@param int    $page
@param string $window  (day | week | month | year | all)

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

@return array Gallery Image (@see https://api.imgur.com/models/gallery_image) OR Gallery Album (@see https://api.imgur.com/models/gallery_album)
View gallery items for a topic .