|
6 | 6 | Use Codat's Files API to upload your SMB customers' files. |
7 | 7 |
|
8 | 8 | <!-- Start SDK Installation --> |
9 | | -replace me |
| 9 | +## SDK Installation |
| 10 | + |
| 11 | +```bash |
| 12 | +pip install codat-files |
| 13 | +``` |
10 | 14 | <!-- End SDK Installation --> |
11 | 15 |
|
12 | 16 | ## Example Usage |
13 | 17 | <!-- Start SDK Example Usage --> |
14 | | -replace me |
| 18 | +```python |
| 19 | +import codatfiles |
| 20 | +from codatfiles.models import operations, shared |
| 21 | + |
| 22 | +s = codatfiles.CodatFiles( |
| 23 | + auth_header="Basic BASE_64_ENCODED(API_KEY)", |
| 24 | +) |
| 25 | + |
| 26 | +req = operations.DownloadFilesRequest( |
| 27 | + company_id='8a210b68-6988-11ed-a1eb-0242ac120002', |
| 28 | + date_='2022-10-23T00:00:00.000Z', |
| 29 | +) |
| 30 | + |
| 31 | +res = s.files.download_files(req) |
| 32 | + |
| 33 | +if res.data is not None: |
| 34 | + # handle response |
| 35 | + pass |
| 36 | +``` |
15 | 37 | <!-- End SDK Example Usage --> |
16 | 38 |
|
17 | 39 | <!-- Start SDK Available Operations --> |
18 | | -replace me |
| 40 | +## Available Resources and Operations |
| 41 | + |
| 42 | + |
| 43 | +### [files](docs/sdks/files/README.md) |
| 44 | + |
| 45 | +* [download_files](docs/sdks/files/README.md#download_files) - Download all files for a company |
| 46 | +* [list_files](docs/sdks/files/README.md#list_files) - List all files uploaded by a company |
| 47 | +* [upload_files](docs/sdks/files/README.md#upload_files) - Upload files for a company |
19 | 48 | <!-- End SDK Available Operations --> |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | +<!-- Start Dev Containers --> |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | +<!-- End Dev Containers --> |
| 57 | + |
| 58 | +<!-- Placeholder for Future Speakeasy SDK Sections --> |
| 59 | + |
| 60 | + |
20 | 61 | ### Library generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks) |
0 commit comments