Skip to content

Latest commit

 

History

History
81 lines (41 loc) · 1.12 KB

BlobApi.md

File metadata and controls

81 lines (41 loc) · 1.12 KB

APIDocs


API / <internal> / BlobApi

Class: BlobApi

Constructors

new BlobApi()

new BlobApi(options): BlobApi

Parameters

options

options.blobStore: BlobStore

options.getMediaBaseUrl

Returns

BlobApi

Methods

create()

create(filepaths, metadata): Promise<object>

Write blobs for provided variants of a file

Parameters

filepaths

filepaths.original: string

filepaths.preview?: string

filepaths.thumbnail?: string

metadata: Metadata

Returns

Promise<object>

driveId

driveId: string

hash

hash: string

name

name: string

type

type: "photo" | "audio" | "video"


getUrl()

getUrl(blobId): Promise<string>

Get a url for a blob based on its BlobId

Parameters

blobId: BlobId

Returns

Promise<string>