accounts

class Account()

A user’s (email or social) account. Frontend model for assembl.models.auth.AbstractAgentAccount

Extends

app.models.base.BaseModel()

Account.app.models.accounts.Account.urlRoot
Type

string

Account.isFacebookAccount()

Returns true if the Account type is a Facebook account

Return type

Boolean

Account.validate()

Validate the model attributes

class Accounts()

Accounts collection

Extends

app.models.base.BaseCollection()

Accounts.app.models.accounts.Accounts.url
Type

string

Accounts.getFacebookAccount()

Returns Facebook account data

Return type

Object

Accounts.hasFacebookAccount()

Returns true if the Account type is a Facebook account

Return type

Boolean