> For the complete documentation index, see [llms.txt](https://docs.flo.stream/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flo.stream/welcome-to-flostream/getting-started/user-demo-2.md).

# User Demo 2

JavaScript Example

**Example using ('aws-sdk')**

```javascript
const AWS = require("aws-sdk");
const Bucket = "my-data";
const s3 = new AWS.S3({
    accessKeyId: "xxx",
    secretAccessKey: "xxx,
    region: "eu-1",
    endpoint: "https://s3.eu-1.flo.stream",
      s3ForcePathStyle: true

});

const listParams = {
    Bucket,
    MaxKeys: 10,
};

s3.listObjectsV2(listParams, (err, data) => {
    if (err) {
        console.log(err);
    } else {
        console.log(data);
    }
});
```
