To work with Deezer user objects.

the Deezer User API Documentation for more details about each field.

Hierarchy (View Summary)

Constructors

Properties

client: Client
_fields: string[]
_fetched: boolean = false
id: number
type: string
name: string
lastname?: string
firstname?: string
email?: string
status?: number
birthday?: string
inscription_date?: string
gender?: string
link?: string
picture?: string
picture_small?: string
picture_medium?: string
picture_big?: string
picture_xl?: string
country?: string
lang?: string
is_kid?: boolean
explicit_content_level?: string
explicit_content_levels_available?: string[]
tracklist: string

Methods

  • Type Parameters

    • T

    Parameters

    • relation: string
    • OptionalresourceType: new (client: Client, json: Record<string, any>) => Resource
    • Optionalparams: Record<string, string>
    • fwdParent: boolean = true

    Returns Promise<T>

  • Ensures a field is loaded, fetching the full resource if necessary.

    Type Parameters

    • T

    Parameters

    • fieldName: string

      The name of the field to ensure

    Returns Promise<T>

    The value of the field

    Error if the field cannot be loaded