in fxa/profile.py [0:0]
def get_email(self, token):
"""Get the email address for the user associated with this token."""
url = '/email'
resp = self.apiclient.get(url, auth=BearerTokenAuth(token))
try:
return resp["email"]
except KeyError:
error_msg = "email missing in profile response"
raise OutOfProtocolError(error_msg)