# Get file

#### Syntax

#### &#x20;                                               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

<table><thead><tr><th width="135">Name</th><th width="107">Type</th><th width="119">Required</th><th>Description</th></tr></thead><tbody><tr><td>opts</td><td>Object</td><td>Yes</td><td>Initialization parameter</td></tr></tbody></table>

## Properties <a href="#properties" id="properties"></a>

**opts**

<table><thead><tr><th width="164">Name</th><th width="107">Type</th><th width="119">Required</th><th>Description</th></tr></thead><tbody><tr><td>projectKey</td><td>String</td><td>Yes</td><td>project key to authenticate client and eueno server</td></tr><tr><td>fileId</td><td>Integer</td><td>Yes</td><td>File id want get</td></tr><tr><td>readDataFile</td><td>Boolean</td><td>No</td><td>Option true will get content file</td></tr><tr><td>walletPrivateKey</td><td>String</td><td>No</td><td>If readDataFile=true, walletPrivateKey need to decrypt files with file encrypt</td></tr></tbody></table>
