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

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

        return $this->get('gallery/t/' . $name . '/' . $sort . '/' . $window . '/' . (int) $page);
    }
public function galleryTag ( $ name , $ sort = 'viral' , $ page = 0 , $ window = 'week' ) { $ this -> validateSortArgument ( $ sort , [ 'top' , 'time' , 'viral' ] ) ; $ this -> validateWindowArgument ( $ window , [ 'day' , 'week' , 'month' , 'year' , 'all' ] ) ; return $ this -> get ( 'gallery/t/' . $ name . '/' . $ sort . '/' . $ window . '/' . ( int ) $ page ) ; }
View images for a gallery tag.

@param string $name   The name of the tag
@param string $sort   (top | time | viral)
@param int    $page
@param string $window (day | week | month | year | all)

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

@return array Tag (@see https://api.imgur.com/models/tag)
View images for a gallery tag .