Bitbucket Data Center API Client
    Preparing search index...

    Class UserResource

    Represents a Bitbucket user resource.

    Implements PromiseLike<BitbucketUser> so it can be awaited directly to fetch user info.

    // Await directly to get user info
    const user = await bbClient.user('pilmee');

    Implements

    Index

    Methods

    • Fetches the settings of this user.

      GET /rest/api/latest/users/{slug}/settings

      Returns Promise<BitbucketUserSettings>

      The user settings object

    • Fetches the SSH keys associated with this user.

      GET /rest/api/latest/users/{slug}/ssh

      Parameters

      • Optionalparams: SshKeysParams

        Optional pagination: limit, start

      Returns Promise<PagedResponse<BitbucketSshKey>>

      A paged response of SSH keys