ProfileAPI Class
Constructor
ProfileAPI
(
-
clientId
-
[options={}]
Parameters:
-
clientId
String- the OAuth client ID for the relier
-
[options={}]
Object optional- configuration
-
[profileHost]
String optionalFirefox Accounts Profile Server host
Methods
all
()
Object
Get all the user's profile data. Must be called after fetch
Returns:
Object:
User's profile data that was fetched using fetch
.
fetch
(
Promise
-
token Scoped
-
[options={}]
Fetch a user's profile data.
Parameters:
-
token Scoped
StringOAuth token that can be used to access the profile data
-
[options={}]
Object optional- configuration
-
[xhr]
String optionalXMLHttpRequest compatible object to use to make the request.
Returns:
Promise:
Response resolves to the user's profile data on success.