< Back

Connect-Brickset

Sun Jan 12, 2020 6:15 pm

NAME Connect-Brickset



SYNOPSIS

Make a connection to the Brickset API





SYNTAX

Connect-Brickset [-APIKey] <String> [[-Credential] <PSCredential>] [<CommonParameters>]





DESCRIPTION

Make a connection to the Brickset API. Set the Brickset API Key and UserHash





PARAMETERS

-APIKey <String>

API Key



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Credential <PSCredential>

Supply Brickset Credentials



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

System.String

Management.Automation.PSCredential





OUTPUTS

System.Management.Automation.PSObject





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Connect-Brickset -APIKey 'Tk5C-KTA2-Gw2Q'













-------------------------- EXAMPLE 2 --------------------------



PS C:\\>$cred = Get-Credential



Connect-Brickset -APIKey 'Tk5C-KTA2-Gw2Q' -Credential $cred











RELATED LINKS