如何查找 Bitbucket 帐户 UUID?

Rat*_*mar 5 git rest bitbucket bitbucket-server

由于 bitbucket 不再支持使用用户名。我们必须改为使用用户 uuid 来访问 bitbucket api。

折旧或更早

https://api.bitbucket.com/2.0/users/udayRatan

最新的

https://api.bitbucket.com/2.0/users/558050:c0b72ad0-1cb5-4018-9cdc-0cde8492c443

Ron*_*yen 6

  1. 检查您的https://bitbucket.org/account/settings/
  2. 在浏览器检查器元素中搜索“uuid”
  3. 享受您的个人信息(包括uuid)


For*_*low 5

您可以对您拥有的存储库发出 GET 请求,并在owner属性下查看您的 UUID :

curl https://api.bitbucket.org/2.0/repositories/1team/moxie
Run Code Online (Sandbox Code Playgroud)

或者您可以向您所在团队的所有团队成员发出 GET 请求,并在那里查看他们的 UUID

curl https://api.bitbucket.org/2.0/teams/1team/members
Run Code Online (Sandbox Code Playgroud)

信息取自https://developer.atlassian.com/bitbucket/api/2/reference/meta/uri-uuid#repo-obj