Interface CloudStorageInterface
Methods
audioToMp3
- audioToMp3(options: { url: string }): string
audioToText
- audioToText(options: { url: string; done: any }): void
Parameters
options: { url: string; done: any }
Returns void
blurImage
- blurImage(options: { radius: number; sigma: number; url: string; done?: any }): void
Parameters
options: { radius: number; sigma: number; url: string; done?: any }
radius: number
sigma: number
url: string
done?:function
Returns void
cropImage
- cropImage(options: { height: number; url: string; width: number; x: number; y: number; done?: any }): void
Parameters
options: { height: number; url: string; width: number; x: number; y: number; done?: any }
height: number
url: string
width: number
x: number
y: number
done?:function
Returns void
deleteNosAccessToken
- deleteNosAccessToken(options: { token: string; done: any }): void
Parameters
options: { token: string; done: any }
token: string
done:function
Returns void
getNosAccessToken
- getNosAccessToken(options: { ext?: string; url: string; userAgent?: string; done: any }): void
Parameters
options: { ext?: string; url: string; userAgent?: string; done: any }
Optional ext?: string
url: string
Optional userAgent?: string
done:function
Parameters
data: { resUrl: string; token: string }
resUrl: string
token: string
Returns void
Returns void
getNosOriginUrl
- getNosOriginUrl(options: { safeShortUrl: string; done: any }): void
Parameters
options: { safeShortUrl: string; done: any }
safeShortUrl: string
done:function
Returns void
interlaceImage
- interlaceImage(options: { url: string; done?: any }): void
Parameters
options: { url: string; done?: any }
url: string
done?:function
Returns void
packFileDownloadName
- packFileDownloadName(options: { name: string; url: string }): string
Parameters
options: { name: string; url: string }
Returns string
processImage
- processImage(options: { ops: NIMStrAnyObj; url: string; done?: any }): void
Parameters
options: { ops: NIMStrAnyObj; url: string; done?: any }
url: string
done?:function
Returns void
qualityImage
- qualityImage(options: { quality: number; url: string; done?: any }): void
Parameters
options: { quality: number; url: string; done?: any }
quality: number
url: string
done?:function
Returns void
rotateImage
- rotateImage(options: { angle: number; url: string; done?: any }): void
Parameters
options: { angle: number; url: string; done?: any }
angle: number
url: string
done?:function
Returns void
stripImageMeta
- stripImageMeta(options: { url: string; done: any }): string
Parameters
options: { url: string; done: any }
Returns string
thumbnailImage
- thumbnailImage(options: { axis: { x: number; y: number }; height?: number; url: string; width?: number; done?: any }): void
Parameters
options: { axis: { x: number; y: number }; height?: number; url: string; width?: number; done?: any }
axis: { x: number; y: number }
Optional height?: number
url: string
Optional width?: number
done?:function
Returns void
云存储相关 API:上传文件,文件处理等。