API Docs for: 0.0.8
Show:

ProfileAPI Class

Constructor

ProfileAPI

(
  • clientId
  • [options={}]
)

Parameters:

  • clientId String
    • the OAuth client ID for the relier
  • [options={}] Object optional
    • configuration
    • [profileHost] String optional

      Firefox Accounts Profile Server host

Item Index

Methods

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

(
  • token Scoped
  • [options={}]
)
Promise

Fetch a user's profile data.

Parameters:

  • token Scoped String

    OAuth token that can be used to access the profile data

  • [options={}] Object optional
    • configuration
    • [xhr] String optional

      XMLHttpRequest compatible object to use to make the request.

Returns:

Promise:

Response resolves to the user's profile data on success.