Options
All
  • Public
  • Public/Protected
  • All
Menu

Class User

Hierarchy

  • User

Index

Constructors

constructor

  • new User(accessToken: string): User

Properties

Private accessToken

accessToken: string

Private api

api: Api = new api(this.accessToken)

Methods

friends

  • Gets all of the friends of the specified user, or yourself if none is specified.

    Parameters

    • Optional params: object
      • Optional expand?: string
      • Optional limit?: number
      • Optional mature_content?: boolean
      • Optional offset?: number
      • Optional username?: string

    Returns Promise<DeviantArtUserFriends>

friendsSearch

  • Searches friends by their username.

    Parameters

    • params: object
      • Optional mature_content?: boolean
      • query: string
      • Optional username?: string

    Returns Promise<DeviantArtFriendSearch>

profile

  • Fetches the profile of the specified user.

    Parameters

    • Optional params: object
      • Optional expand?: string
      • Optional ext_collections?: boolean
      • Optional ext_galleries?: boolean
      • Optional mature_content?: boolean
      • Optional username?: string

    Returns Promise<DeviantArtUserProfile>

status

  • Fetches a specific status from its status id.

    Parameters

    • params: object
      • Optional mature_content?: boolean
      • statusid: string

    Returns Promise<DeviantArtStatus>

statuses

  • Gets all of the statuses of the specified user.

    Parameters

    • Optional params: object
      • Optional limit?: number
      • Optional mature_content?: boolean
      • Optional offset?: number
      • Optional username?: string

    Returns Promise<DeviantArtUserStatuses>

watchers

  • Fetches all the watchers of the specified user.

    Parameters

    • Optional params: object
      • Optional expand?: string
      • Optional limit?: number
      • Optional mature_content?: boolean
      • Optional offset?: number
      • Optional username?: string

    Returns Promise<DeviantArtWatchers>

Generated using TypeDoc