Constructors
constructor
- new Api(accessToken: string): Api
Properties
Private accessToken
accessToken: string
Methods
get
- get(endpoint: string, params: any): Promise<any>
-
Parameters
-
endpoint: string
-
params: any
Returns Promise<any>
Static cleanHTML
- cleanHTML(str: string): string
-
Parameters
Returns string
Static getNoLogin
- getNoLogin(endpoint: string, params: any): Promise<any>
-
Parameters
-
endpoint: string
-
params: any
Returns Promise<any>
Static getRSS
- getRSS(params: any, limit?: number): Promise<any[]>
-
Parameters
-
params: any
-
Optional limit: number
Returns Promise<any[]>
Gets an endpoint from the DeviantArt api.