Hierarchy

  • default
    • Organisations

Constructors

  • Parameters

    Returns Organisations

    const OneBlink = require('@oneblink/sdk')
    const options = {
    accessKey: '123455678901ABCDEFGHIJKL',
    secretKey: '123455678901ABCDEFGHIJKL123455678901ABCDEFGHIJKL',
    }
    const organisations = new OneBlink.Organisations(options)

Methods

  • Returns Promise<Organisation>

    const organisation = await organisations.getOrganisation()
    // Use organisation here...
  • Parameters

    • asset: {
          assetContentType?: string;
          assetData: unknown;
          assetFileName?: unknown;
      }

      The properties of the asset to upload

      • OptionalassetContentType?: string
      • assetData: unknown
      • OptionalassetFileName?: unknown

    Returns Promise<{
        location: string;
    }>

    const asset = {
    assetData: 'some kind of data',
    assetFileName: 'myfile.png',
    assetContentType: 'image/png',
    }
    const { location } = await organisations.uploadAsset(asset)
    // Use location here...