Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Deviation

Hierarchy

  • Deviation

Index

Constructors

constructor

  • new Deviation(accessToken: string): Deviation

Properties

Private accessToken

accessToken: string

Private api

api: Api = new api(this.accessToken)

Methods

content

download

  • Fetches the file download of a deviation, if available.

    Parameters

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

    Returns Promise<DeviationDownload>

embeddedContent

  • Fetches the embedded content in a deviation.

    Parameters

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

    Returns Promise<DeviationEmbeddedContent>

get

metaData

  • Gets the meta data for multiple deviations.

    Parameters

    • params: object
      • deviationids: string[]
      • Optional ext_camera?: boolean
      • Optional ext_collection?: boolean
      • Optional ext_stats?: boolean
      • Optional ext_submission?: boolean
      • Optional mature_content?: boolean

    Returns Promise<DeviationMetaData>

whoFaved

  • Get a list of users who favorited the deviation.

    Parameters

    • params: object
      • deviationid: string
      • Optional limit?: number
      • Optional offset?: number

    Returns Promise<DeviationWhoFaved>

Generated using TypeDoc