public function renameEventAlbum($albumId, $albumName)
    {
        if (is_null($albumId) || $albumId == '') {
            throw new Exception('The albumId is required to rename an album.');
        }

        if (is_null($albumName) || $albumName == '') {
            throw new Exception('The albumName is required to create a new album.');
        }

        $params = array(
            'method' => 'sp.album.rename',
            'album_id' => $albumId,
            'album_name' => $albumName
        );

        return $this->_makeApiRequest($params);
    }
public function renameEventAlbum($albumId, $albumName)
    {
        if (is_null($albumId) || $albumId == '') {
            throw new Exception('The albumId is required to rename an album.');
        }

        if (is_null($albumName) || $albumName == '') {
            throw new Exception('The albumName is required to create a new album.');
        }

        $params = array(
            'method' => 'sp.album.rename',
            'album_id' => $albumId,
            'album_name' => $albumName
        );

        return $this->_makeApiRequest($params);
    }
public function renameEventAlbum ( $ albumId , $ albumName ) { if ( is_null ( $ albumId ) || $ albumId == '' ) { throw new Exception ( 'The albumId is required to rename an album.' ) ; } if ( is_null ( $ albumName ) || $ albumName == '' ) { throw new Exception ( 'The albumName is required to create a new album.' ) ; } $ params = array ( 'method' => 'sp.album.rename' , 'album_id' => $ albumId , 'album_name' => $ albumName ) ; return $ this -> _makeApiRequest ( $ params ) ; }
Method to rename an album

@param integer $albumId
@param string $albumName
@return array
Method to rename an album