lib/Imgur/Api/Gallery.php
public function submitToGallery($imageOrAlbumId, $data)
    {
        if (!isset($data['title'])) {
            throw new MissingArgumentException('title');
        }

        return $this->post('gallery/' . $imageOrAlbumId, $data);
    }
public function submitToGallery($imageOrAlbumId, $data)
    {
        if (!isset($data['title'])) {
            throw new MissingArgumentException('title');
        }

        return $this->post('gallery/' . $imageOrAlbumId, $data);
    }
public function submitToGallery ( $ imageOrAlbumId , $ data ) { if ( ! isset ( $ data [ 'title' ] ) ) { throw new MissingArgumentException ( 'title' ) ; } return $ this -> post ( 'gallery/' . $ imageOrAlbumId , $ data ) ; }
Share an Album or Image to the Gallery.

@param string $imageOrAlbumId
@param array  $data

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

@return bool
Share an Album or Image to the Gallery .