Skip to content

Latest commit

 

History

History
115 lines (70 loc) · 4.11 KB

UsersApi.md

File metadata and controls

115 lines (70 loc) · 4.11 KB

{{classname}}

All URIs are relative to https://api.bitbucket.org/2.0

Method HTTP request Description
UserEmailsEmailGet Get /user/emails/{email} Get an email address for current user
UserEmailsGet Get /user/emails List email addresses for current user
UserGet Get /user Get current user
UsersSelectedUserGet Get /users/{selected_user} Get a user

UserEmailsEmailGet

ModelError UserEmailsEmailGet(ctx, email) Get an email address for current user

Returns details about a specific one of the authenticated user's email addresses. Details describe whether the address has been confirmed by the user and whether it is the user's primary address or not.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
email string Email address of the user.

Return type

ModelError

Authorization

api_key, basic, oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

UserEmailsGet

ModelError UserEmailsGet(ctx, ) List email addresses for current user

Returns all the authenticated user's email addresses. Both confirmed and unconfirmed.

Required Parameters

This endpoint does not need any parameter.

Return type

ModelError

Authorization

api_key, basic, oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

UserGet

Account UserGet(ctx, ) Get current user

Returns the currently logged in user.

Required Parameters

This endpoint does not need any parameter.

Return type

Account

Authorization

api_key, basic, oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

UsersSelectedUserGet

Account UsersSelectedUserGet(ctx, selectedUser) Get a user

Gets the public information associated with a user account. If the user's profile is private, location, website and created_on elements are omitted. Note that the user object returned by this operation is changing significantly, due to privacy changes. See the announcement for details.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
selectedUser string This can either be the UUID of the account, surrounded by curly-braces, for example: `{account UUID}`, OR an Atlassian Account ID.

Return type

Account

Authorization

api_key, basic, oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]