in fxa/profile.py [0:0]
def get_avatar_url(self, token):
"""Get the url for a user's avatar picture."""
url = '/avatar'
resp = self.apiclient.get(url, auth=BearerTokenAuth(token))
try:
return resp["url"]
except KeyError:
error_msg = "url missing in profile response"
raise OutOfProtocolError(error_msg)