Constructors
constructor
- new AmoFileClient(accessToken: string, options: any): AmoFileClient
Parameters
- accessToken: string
- options: any
Methods
getFileByUUID
- getFileByUUID(uuid: string): Promise<any>
Returns Promise<any>
getFiles
- getFiles(): Promise<any>
Returns Promise<any>
hasFilesDeleteScope
- hasFilesDeleteScope(): boolean
Returns boolean
hasFilesScope
- hasFilesScope(): boolean
Returns boolean
restoreFileByUUID
- restoreFileByUUID(uuid: string): Promise<any>
Returns Promise<any>
uploadFile
- uploadFile(
fileName: string,
filePath: string,
contentType: string,
): Promise<any> Parameters
- fileName: string
- filePath: string
- contentType: string
Returns Promise<any>
Properties
accessToken
accessToken: string
debug
debug: boolean = false
instance
instance: AxiosInstance