Get file

Syntax

eueno.getObjectDetail(opts)

Example

const Eueno = require('@eueno/lib-node');

async function example() {
  const eueno = new Eueno({
    endpoint: 'https://v2-developers.eueno.io',
  });

  const data = await eueno.getObjectDetail(
    {
      fileId: "file id",
      projectKey: "project key",
    },
  );
  console.log(`file`,data.data);
}
example();

Parameters

NameTypeRequiredDescription

opts

Object

Yes

Initialization parameter

Properties

opts

NameTypeRequiredDescription

projectKey

String

Yes

project key to authenticate client and eueno server

fileId

Integer

Yes

File id want get

readDataFile

Boolean

No

Option true will get content file

walletPrivateKey

String

No

If readDataFile=true, walletPrivateKey need to decrypt files with file encrypt

Last updated