import * as OneBlink from '@oneblink/sdk' const options = { accessKey: '123455678901ABCDEFGHIJKL', secretKey: '123455678901ABCDEFGHIJKL123455678901ABCDEFGHIJKL', } const organisations = new OneBlink.Organisations(options) Copy
import * as OneBlink from '@oneblink/sdk' const options = { accessKey: '123455678901ABCDEFGHIJKL', secretKey: '123455678901ABCDEFGHIJKL123455678901ABCDEFGHIJKL', } const organisations = new OneBlink.Organisations(options)
const organisation = await organisations.getOrganisation() // Use organisation here... Copy
const organisation = await organisations.getOrganisation() // Use organisation here...
The properties of the asset to upload
const asset = { assetData: 'some kind of data', assetFileName: 'myfile.png', assetContentType: 'image/png', } const { location } = await organisations.uploadAsset(asset) // Use location here... Copy
const asset = { assetData: 'some kind of data', assetFileName: 'myfile.png', assetContentType: 'image/png', } const { location } = await organisations.uploadAsset(asset) // Use location here...
Example