From 4d556eb89818f6557c97c42bec58b1bf9ab4366b Mon Sep 17 00:00:00 2001 From: StevanFreeborn Date: Tue, 3 May 2022 12:40:57 -0500 Subject: [PATCH] update README.md --- .gitignore | 3 +++ README.md | 32 ++++++++++++++++++++++++++++---- 2 files changed, 31 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 259c0f6..baccf1a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +# console tests +ConsoleTests.py + # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] diff --git a/README.md b/README.md index 9f14a8c..b075ae8 100644 --- a/README.md +++ b/README.md @@ -274,16 +274,35 @@ response = client.GetFieldsByAppId(195, pagingRequest) #### Get File Info By Id ```python -``` +response = client.GetFileInfoById(1, 6990, 274) -#### Delete File By Id - -```python +print(f'Status Code: {response.statusCode}') +print(f'Name: {response.data.fileInfo.name}') +print(f'Type: {response.data.fileInfo.type}') +print(f'Owner: {response.data.fileInfo.owner}') +print(f'Content Type: {response.data.fileInfo.contentType}') +print(f'Created Date: {response.data.fileInfo.createdDate}') +print(f'Modified Date: {response.data.fileInfo.modifiedDate}') +print(f'File Href: {response.data.fileInfo.fileHref}') ``` #### Get File By Id ```python +response = client.GetFileById(1, 6990, 274) + +print(f'Status Code: {response.statusCode}') +print(f'Name: {response.data.file.name}') +print(f'Content Type: {response.data.file.contentType}') +print(f'Content Length: {response.data.file.contentLength}') + +filePath = f'C:\\Users\\sfree\\Documents\\Temp\\{response.data.file.name}' + +with open(filePath, "wb") as file: + + file.write(response.data.file.content) + +print(f'File Location: {filePath}') ``` #### Save File @@ -291,6 +310,11 @@ response = client.GetFieldsByAppId(195, pagingRequest) ```python ``` +#### Delete File By Id + +```python +``` + ### Lists #### Add Or Update List Value