API • Docs
API / <internal> / BlobApi
new BlobApi(
options
):BlobApi
• options
• options.blobStore: BlobStore
• options.getMediaBaseUrl
create(
filepaths
,metadata
):Promise
<object
>
Write blobs for provided variants of a file
• filepaths
• filepaths.original: string
• filepaths.preview?: string
• filepaths.thumbnail?: string
• metadata: Metadata
Promise
<object
>
driveId:
string
hash:
string
name:
string
type:
"photo"
|"audio"
|"video"
getUrl(
blobId
):Promise
<string
>
Get a url for a blob based on its BlobId
• blobId: BlobId
Promise
<string
>