Git Product home page Git Product logo

bitbucket.v2's Introduction

Bitbucket.v2

Logs into Bitbucket as a User or is Authorized by Bitbucket as a Consumer and the Credential is used with the Bitbucket API.

Functions

Connect-Bitbucket

Description

Stores Credential in your current PowerShell session for later use

Parameters

  • User - Sets Credentials as a Bitbucket User using the User Bitbucket UserID and Password
  • Consumer - Sets Credentials as a Consumer using the Consumer Key (ClientID) and Secret

Examples

	Connect-Bitbucket -Mode User

	Connect-Bitbucket -Mode User -Credential $UserCredential

	Connect-Bitbucket -Mode Consumer

	Connect-Bitbucket -Mode Consumer -Credential $ConsumerCredential

Get-BitbucketKey

Description

Obtains all Consumer Keys (ClientID) and Secrest using the Bitbucket API.

Parameters

  • UserID - The Bitbucket User Name used in the Bitbucket URL e.g. https://bitbucket.org/bloggsj
  • Credential - Optional - Existing Credential Object to access Private Bitbucket Account
  • Human - Optional - Specify if Human is running function to show formatted display. Default is false

Examples

	Get-BitbucketKey -UserID bloggsj

	Get-BitbucketKey -UserID bloggsj -Credential $UserCreds

New-BitbucketToken

Description

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

Parameters

  • UserCredential - Optional - Existing Credential Object to access Private Bitbucket Account
  • ConsumerCredential - Optional - Existing Credential Object for Consumer Key (ClientID) and Secret
  • Human - Optional - Specify if Human is running function to show formatted display. Default is false

Examples

	New-BitbucketToken -Human $true

	New-BitbucketToken -UserCredential $UserCreds

	New-BitbucketToken -UserCredential $UserCreds -ConsumerCredential $ConsumerCreds

Update-BitbucketToken

Description

Uses the 'refresh_token' Grant OAuth2 flow to acquire a new Access Token for the specified consumer.

Parameters

  • RefreshToken - Refresh Token required to generate a new Access Token for the Consumer
  • Credential - Optional - Existing Credential Object for Consumer Key (ClientID) and Secret
  • Human - Optional - Specify if Human is running function to show formatted display. Default is false

Examples

	Update-BitbucketToken -RefreshToken $Token

	Update-BitbucketToken -RefreshToken $Token -Credential $ConsumerCreds

	Update-BitbucketToken -RefreshToken $Token -Human $true

Prerequisites

  • Bitbucket Private Account
  • Configured Consumer(s)
  • PowerShell V5

Versioning

Github for version control.

Authors

See also the list of contributors who participated in this project.

bitbucket.v2's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.