Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DeviantArt

This is the main class for interacting with the DeviantArt API.

Hierarchy

  • DeviantArt

Index

Constructors

Private constructor

Properties

api

api: Api = new api(DeviantArt.accessToken)

browse

browse: Browse = new Browse(DeviantArt.accessToken)

collections

collections: Collections = new Collections(DeviantArt.accessToken)

comments

comments: Comments = new Comments(DeviantArt.accessToken)

curated

curated: Curated = new Curated(DeviantArt.accessToken)

data

data: Data = new Data(DeviantArt.accessToken)

deviation

deviation: Deviation = new Deviation(DeviantArt.accessToken)

gallery

gallery: Gallery = new Gallery(DeviantArt.accessToken)

rss

rss: RSS = new RSS(DeviantArt.accessToken)

stash

stash: Stash = new Stash(DeviantArt.accessToken)

user

user: User = new User(DeviantArt.accessToken)

util

util: Util = new Util(DeviantArt.accessToken)

Static accessToken

accessToken: string

Methods

extendDeviations

extendRSSDeviations

findByIteration

  • Finds a deviation from it's URL by iterating through all of the user's submitted illustrations. While slow if the user has a lot of deviations, with this function you can easily get a deviation's id.

    Parameters

    • deviationUrl: string

    Returns Promise<DeviantArtDeviation>

Static login

  • login(clientId: string, clientSecret: string): Promise<DeviantArt>
  • Logs into the DeviantArt API with your client id and token, and retrieves your access token.

    Parameters

    • clientId: string
    • clientSecret: string

    Returns Promise<DeviantArt>

    An instance of the DeviantArt Class.

Generated using TypeDoc