lib/Imgur/Api/Gallery.php
public function vote($imageOrAlbumId, $vote)
    {
        $this->validateVoteArgument($vote, ['up', 'down', 'veto']);

        return $this->post('gallery/' . $imageOrAlbumId . '/vote/' . $vote);
    }
public function vote($imageOrAlbumId, $vote)
    {
        $this->validateVoteArgument($vote, ['up', 'down', 'veto']);

        return $this->post('gallery/' . $imageOrAlbumId . '/vote/' . $vote);
    }
public function vote ( $ imageOrAlbumId , $ vote ) { $ this -> validateVoteArgument ( $ vote , [ 'up' , 'down' , 'veto' ] ) ; return $ this -> post ( 'gallery/' . $ imageOrAlbumId . '/vote/' . $ vote ) ; }
Vote for an image, 'up' or 'down' vote. Send 'veto' to undo a vote.

@param string $imageOrAlbumId
@param string $vote           (up | down | veto)

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

@return bool
Vote for an image up or down vote . Send veto to undo a vote .