update README.md

This commit is contained in:
StevanFreeborn
2022-05-03 12:40:57 -05:00
parent 5ed1c012fc
commit 4d556eb898
2 changed files with 31 additions and 4 deletions
+3
View File
@@ -1,3 +1,6 @@
# console tests
ConsoleTests.py
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
+28 -4
View File
@@ -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