Skip to main content

Space

The API at the space level can get the datasheets in space and perform follow-up operations. More methods will be supported in the future...

space.Space

Parameters

id

get id(): undefined | string

Space ID, the unique identifier of a space

Returns

undefined | string

Example

console.log(space.id); // => 'spcxxxxxx'

name

get name(): undefined | string

Space name

Returns

undefined | string

Example

console.log(space.name); // => 'test space'

Methods

getDatasheetAsync

getDatasheetAsync(datasheetId): Promise<Datasheet>

Get a datasheet in space

Parameters

NameTypeDescription
datasheetIdstringSpecify datasheet ID to fetch

Returns

Promise<Datasheet>

Example

console.log(space.getDatasheetAsync('dstxxxxxx')); // => Datasheet