< Back

New-BitbucketToken

Sat Jan 11, 2020 2:27 pm

NAME New-BitbucketToken



SYNOPSIS

Obtains an Access Token and Refresh Token to use with the Bitbucket API.





SYNTAX

New-BitbucketToken [[-UserCredential] <PSCredential>] [[-ConsumerCredential] <PSCredential>] [[-Human] <Boolean>]

[<CommonParameters>]





DESCRIPTION

Uses the 'password' Grant OAuth2 flow to acquire an Access Token and Refresh Token for a specified consumer.





PARAMETERS

-UserCredential <PSCredential>



Required? false

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ConsumerCredential <PSCredential>



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Human <Boolean>



Required? false

Position? 3

Default value False

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



OUTPUTS



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



PS C:\\>New-BitbucketToken -Human $true













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



PS C:\\>New-BitbucketToken -UserCredential $UserCreds













-------------------------- EXAMPLE 3 --------------------------



PS C:\\>New-BitbucketToken -UserCredential $UserCreds -ConsumerCredential $ConsumerCreds















RELATED LINKS