# getShareListToMe ()

## Syntax

```javascript
getShareListToMe(page?: number, pageSize?: number)
```

The method is used to get a list of files/folders that user was shared with.

## Parameters

<table><thead><tr><th width="119">Name</th><th width="121">Type</th><th width="108">Required</th><th>Description</th></tr></thead><tbody><tr><td>page</td><td>number</td><td>No</td><td>The current page in pagination. The default value is 1.</td></tr><tr><td>pageSize</td><td>number</td><td>No</td><td>A number of items for each page. The default value is 5.</td></tr></tbody></table>

## Example

```javascript
import { getShareListToMe } from "@eueno/lib-browser";

const getData = async () => {
   try {
     const response = await getShareListToMe();
     if (response.status == 200) {
       console.log(response.data.data);
     } else {
       toast.error("Failed fetch files, please try again later!");
     }
   } catch (error) {
     console.error(error);
   }
 };
```

Response of example is a array of objects, each object is a file/folder that user was shared with. In this example has only one file .pdf was shared with user:

```javascript
 {
    "msg": "success",
    "data": [
        {
            "id": "78",
            "ownerAddress": "0xcd208680b1eafb52f79e3f31bd491def5171066f",
            "fileId": "246558",
            "projectId": "144",
            "sharedUserAddress": "0x4f5cfa11dcf0a54348c0c06c4ed7fd83e3e46fa3",
            "encryptedKey": "6288c710437d00ee81312f813b1148775433d2f9e450d02017889feb8564e4ac0bd3dcc9004d8cc3cc72f9ed368623150bd5cdc9937476dc3ab9c6b905efcea9fc4d0513141b9ad40e97a642c0ae248bcc91ca742068e5c9ac43284729cdcffd689b220f12216c4673972a88af98574cfec71a1dd53c94a0209d1ae84026179d3de6a691528e3ad7f88927bb57e872cc@@04f381ec848b3f7dd2983e418ab848abc558cc561ca37113e264d6d2f8d822db26ff256aadbbedbee2bad3bcedc8541ed8d257e6b44d7712c474b9c126a891c80d@@b5a1c5ab2da8a84499dbeeb6f45b2b4b@@72b948c59b3790e91c4bc94475b1c9a9d29de29cfc224a24912f5f4bfb9e1397",
            "relFolderPath": "",
            "createdAt": "2023-04-21T03:35:12.579Z",
            "updatedAt": "2023-04-21T03:35:12.579Z",
            "file": {
                "id": "246558",
                "name": "test-upload-key.jpeg",
                "path": "0xcd208680b1eafb52f79e3f31bd491def5171066f/abc/encrypt/1682048032318-o4zcggy.test-upload-key.jpeg",
                "url": "https://staging-node1-gateway-ipfs.eueno.io/ipfs/QmdHWZ5YcF6auo5iC3Kpj6avhRdfU7EmP4R24urYht8qeo",
                "backupUrl": "https://staging-node1-gateway-ipfs.eueno.io/ipfs/QmdHWZ5YcF6auo5iC3Kpj6avhRdfU7EmP4R24urYht8qeo",
                "size": "50347",
                "mimeType": "image/jpeg",
                "method": "ENCRYPT",
                "torrentSize": 4,
                "torrentUrl": "https://staging-node1-gateway-ipfs.eueno.io/ipfs/QmT6kTh3D4keK3Z74fsN6S3Vfwkb1QYGZTuqtQyriDm3nf",
                "backupTorrentUrl": "https://staging-node1-gateway-ipfs.eueno.io/ipfs/QmT6kTh3D4keK3Z74fsN6S3Vfwkb1QYGZTuqtQyriDm3nf",
                "projectId": "144"
            }
        },
       
        {
            "id": "65",
            "ownerAddress": "0xcd208680b1eafb52f79e3f31bd491def5171066f",
            "fileId": "246486",
            "projectId": "144",
            "sharedUserAddress": "0x4f5cfa11dcf0a54348c0c06c4ed7fd83e3e46fa3",
            "encryptedKey": "6ed7a214d80c72698c212314505baef89777c2e88b1eb82714eafac41345bdaca70c3a5ef80f8c5d3143185ead788a5ef4612f1fd24a2dae167bb30202056e679ccfcb1bcb3ca9468de51c37a45771b20c15d041e1bf2b07fa0cebbacaf1c65a5d0652f50b6370b3487fe1ac202dcdaace748743a07e54c97aff14cc66fd64931f89bfe3226bdd48e4cf734b8c28fe3c@@0426ee4e970e014941e2607ae93e51fbd065e06299d12508d9d20cb238c86b897e89827452b2c502e9b5083279c73b03a3ba1684f9ba83c75c11b7cde6390bb194@@21d11d50fd49f4e728322079ae837b66@@93ca15dab6449784d7c1676f236c3552599a35993086ee5677c0e47d75cb8bec",
            "relFolderPath": "",
            "createdAt": "2023-04-19T10:43:57.789Z",
            "updatedAt": "2023-04-19T10:43:57.789Z",
            "file": {
                "id": "246486",
                "name": "TanSon2.jpg",
                "path": "0xcd208680b1eafb52f79e3f31bd491def5171066f/abc/encrypt/1681901024064-wqfnd0kwhp.TanSon2.jpg",
                "url": "https://staging-node1-gateway-ipfs.eueno.io/ipfs/QmdeWkdQ2VjdTX9MDiCQ4SPt3W4PWFjzFi372Hb6he3hPD",
                "backupUrl": "https://staging-node1-gateway-ipfs.eueno.io/ipfs/QmdeWkdQ2VjdTX9MDiCQ4SPt3W4PWFjzFi372Hb6he3hPD",
                "size": "523972",
                "mimeType": "image/jpeg",
                "method": "ENCRYPT",
                "torrentSize": 4,
                "torrentUrl": "https://staging-node1-gateway-ipfs.eueno.io/ipfs/QmQY4Fob73WkDg9RYDQTj9KJsZn1AeaMfcbFwNYTmCnpgL",
                "backupTorrentUrl": "https://staging-node1-gateway-ipfs.eueno.io/ipfs/QmQY4Fob73WkDg9RYDQTj9KJsZn1AeaMfcbFwNYTmCnpgL",
                "projectId": "144"
            }
        }
    ],
    "options": {
        "totalItem": 2
    }
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.eueno.io/eueno-libraries/eueno-lib-browser/getsharelisttome.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
