public function createEventAlbum($eventId, $albumName, $password = null, $parentAlbumId = null)
    {
        if (is_null($eventId) || $eventId == '') {
            throw new Exception('The eventId is required to create an album.');
        }

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

        $params = array(
            'method' => 'sp.album.create',
            'event_id' => $eventId,
            'album_name' => $albumName,
            'password' => $password,
            'parent_id' => $parentAlbumId
        );

        return $this->_makeApiRequest($params);
    }
public function createEventAlbum($eventId, $albumName, $password = null, $parentAlbumId = null)
    {
        if (is_null($eventId) || $eventId == '') {
            throw new Exception('The eventId is required to create an album.');
        }

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

        $params = array(
            'method' => 'sp.album.create',
            'event_id' => $eventId,
            'album_name' => $albumName,
            'password' => $password,
            'parent_id' => $parentAlbumId
        );

        return $this->_makeApiRequest($params);
    }
public function createEventAlbum ( $ eventId , $ albumName , $ password = null , $ parentAlbumId = null ) { if ( is_null ( $ eventId ) || $ eventId == '' ) { throw new Exception ( 'The eventId is required to create an album.' ) ; } if ( is_null ( $ albumName ) || $ albumName == '' ) { throw new Exception ( 'The albumName is required to create a new album.' ) ; } $ params = array ( 'method' => 'sp.album.create' , 'event_id' => $ eventId , 'album_name' => $ albumName , 'password' => $ password , 'parent_id' => $ parentAlbumId ) ; return $ this -> _makeApiRequest ( $ params ) ; }
Method to create a new album in an event

@param integer $eventId
@param string $albumName
@param string $password
@param integer $parentAlbumId
@return array
Method to create a new album in an event