Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Retrieve the user's avatar via the REST API endpoints

It is possible to retrieve the avatarUrl by adding the avatarSize param to the REST call. This will add the avatarUrl property added to each user object that is returned.

 

For example:

<Bitbucket URL>/rest/api/1.0/users/admin?avatarSize=64

The response will contain an additional avatarUrl:

avatarUrl: "http://www.gravatar.com/avatar/f45630842013f138ca99d1a9963e0735.jpg?s=64&d=mm"

In a similar fashion the same parameter can be added to the "/rest/api/1.0/admin/users" request. For example:

<Bitbucket URL>/rest/api/1.0/admin/users?filter=admin&avatarSize=64

This parameter can be added to any request and the avatarUrl will be then added to the user details. For example, this is how you can request for the details of a pull request and include the avatarUrl:

<Bitbucket URL>/rest/api/latest/projects/P1/repos/repo1/pull-requests/1/activities?avatarSize=64

 

 

0 comments

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events