update README.md
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
# console tests
|
||||||
|
ConsoleTests.py
|
||||||
|
|
||||||
# Byte-compiled / optimized / DLL files
|
# Byte-compiled / optimized / DLL files
|
||||||
__pycache__/
|
__pycache__/
|
||||||
*.py[cod]
|
*.py[cod]
|
||||||
|
|||||||
@@ -274,16 +274,35 @@ response = client.GetFieldsByAppId(195, pagingRequest)
|
|||||||
#### Get File Info By Id
|
#### Get File Info By Id
|
||||||
|
|
||||||
```python
|
```python
|
||||||
```
|
response = client.GetFileInfoById(1, 6990, 274)
|
||||||
|
|
||||||
#### Delete File By Id
|
print(f'Status Code: {response.statusCode}')
|
||||||
|
print(f'Name: {response.data.fileInfo.name}')
|
||||||
```python
|
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
|
#### Get File By Id
|
||||||
|
|
||||||
```python
|
```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
|
#### Save File
|
||||||
@@ -291,6 +310,11 @@ response = client.GetFieldsByAppId(195, pagingRequest)
|
|||||||
```python
|
```python
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Delete File By Id
|
||||||
|
|
||||||
|
```python
|
||||||
|
```
|
||||||
|
|
||||||
### Lists
|
### Lists
|
||||||
|
|
||||||
#### Add Or Update List Value
|
#### Add Or Update List Value
|
||||||
|
|||||||
Reference in New Issue
Block a user