public static function create($title, $description = '', $private = false)
    {
        $collection = json_decode(
            self::post(
                "/collections", [
                    'query' => [
                        'title' => $title,
                        'description' => $description,
                        'private' => $private
                    ]
                ]
            )->getBody(),
            true
        );

        return new self($collection);
    }
public static function create($title, $description = '', $private = false)
    {
        $collection = json_decode(
            self::post(
                "/collections", [
                    'query' => [
                        'title' => $title,
                        'description' => $description,
                        'private' => $private
                    ]
                ]
            )->getBody(),
            true
        );

        return new self($collection);
    }
public static function create ( $ title , $ description = '' , $ private = false ) { $ collection = json_decode ( self :: post ( "/collections" , [ 'query' => [ 'title' => $ title , 'description' => $ description , 'private' => $ private ] ] ) -> getBody ( ) , true ) ; return new self ( $ collection ) ; }
Create a new collection. The user needs to connect
their account and authorize the write_collections permission scope.

@param  string $title Collection's title
@param  string $description Collection's description
@param  boolean $private Whether to make this collection private
@return Photo
Create a new collection . The user needs to connect their account and authorize the write_collections permission scope .