# List

Required Frends version: 5.5+

Required .NET version: 6.0

Compatible Agents: Crossplatform

Source code: <https://github.com/FrendsPlatform/Frends.GoogleDrive>

{% tabs %}
{% tab title="Parameter: Input" %}

| Name                               | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ---------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| FileQuery : `String`               | <p>Query for specific files to be listed.</p><p>See Google Drive API Guide</p><p><br>Default: <code>\*</code><br>Example: <code>'42o3j8C7kntMJZeElbZb5B\_5u92snSIkb' in parents and name contains 'test'</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| 🗝ServiceAccountKeyJSON : `String` | <p>Service account key JSON.</p><p><br>Default: <code>-</code><br>Example: <code>{ "type": "service\_account", "project\_id": "something", "private\_key\_id": "fdsafdsafdsalmnop12345678909876543212344", "private\_key": "-----BEGIN PRIVATE KEY-----\nMIIE.......Hw==\n-----END PRIVATE KEY-----\n", "client\_email": "<someone@something.iam.gserviceaccount.com>", "client\_id": "123456789012345678900", "auth\_uri": "<https://accounts.google.com/o/oauth2/auth>", "token\_uri": "<https://oauth2.googleapis.com/token>", "auth\_provider\_x509\_cert\_url": "<https://www.googleapis.com/oauth2/v1/certs>", "client\_x509\_cert\_url": "<https://www....nt.com>" }</code></p> |
| IncludeSharedDrives : `Boolean`    | <p>Whether to include shared drives in the search.</p><p><br>Default: <code>False</code><br>Example: <code>false</code></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| {% endtab %}                       |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |

{% tab title="Result: Result" %}

| Name                | Description                                                                                                                                                                                                                                                             |
| ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Success : `Boolean` | <p>Gets a value indicating whether listing was executed successfully.<br>Example: <code>true</code></p>                                                                                                                                                                 |
| Data : `String`     | <p>List of files as JSON string.<br>Example: <code>{{ "1bzL3JPJDmN\_sLe0hzySuGUzK2mtW1xML": { "Id": "1bzL3JPJDmN\_sLe0hzySuGUzK2mtW1xML", "Name": "test-photograph.jpg", "Size": 271191, "Version": 3,b"CreatedTime": "2023-11-16T08:01:18.824+02:00" }, ...</code></p> |
| {% endtab %}        |                                                                                                                                                                                                                                                                         |

{% tab title="Changelog" %}

## Changelog

### \[1.1.0]

#### Added

* Added a flag to include shared drives in the file search

### \[1.0.0] - 2023-11-17

#### Added

* Initial implementation
  {% endtab %}
  {% endtabs %}
