You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api-ref.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -3365,7 +3365,7 @@ This endpoint is available with REST API version 2.7 and up.
3365
3365
Name | description
3366
3366
:--- | :---
3367
3367
`view_item` | Specifies the view to populate.
3368
-
`req_options` | (Optional) You can pass in request options to specify the maximum age of the CSV cached on the server. The maximum CSV cache time is the value of `maxage` in minutes, and must be an integer between 1 and 240. A value of zero will cause the minimum cache time of 1 minute. A value of -1 will cache CSV files for the time configured in server settings. You can also specify view filters to be applied when the data is generated. See [CSVRequestOptions class](#csvrequestoptions-class) for more details.
3368
+
`req_options` | (Optional) You can pass in request options to specify the maximum age of the CSV cached on the server. See [CSVRequestOptions class](#csvrequestoptions-class) for more details.
3369
3369
3370
3370
**Exceptions**
3371
3371
@@ -3381,9 +3381,9 @@ None. The CSV data is added to the `view_item` and can be accessed by its `csv`
3381
3381
```py
3382
3382
# Sign in, get view, etc.
3383
3383
3384
-
# Populate and save the CSV data as 'view_csv.csv'
3384
+
# Populate and save the CSV data in a file
3385
3385
server.views.populate_csv(view_item)
3386
-
withopen('./view_csv.csv', 'wb') as f:
3386
+
withopen('./view_data.csv', 'wb') as f:
3387
3387
# Perform byte join on the CSV data
3388
3388
f.write(b''.join(view_item.csv))
3389
3389
```
@@ -3413,7 +3413,7 @@ This endpoint is available with REST API version 2.7 and up.
3413
3413
Name | description
3414
3414
:--- | :---
3415
3415
`view_item` | Specifies the view to populate.
3416
-
`req_options` | (Optional) You can pass in request options to specify the page type and orientation of the PDF content, as well as the maximum age of the PDF rendered on the server. If not specified, PDF content will have default page type and orientation. The maximum PDF cache time is the value of `maxage` in minutes, and must be an integer between 1 and 240. A value of zero will cause the minimum cache time of 1 minute. A value of -1 will cache PDF files for the time configured in server settings. You can also specify view filters to be applied when the PDF is generated. See [PDFRequestOptions class](#pdfrequestoptions-class) for more details.
3416
+
`req_options` | (Optional) You can pass in request options to specify the page type and orientation of the PDF content, as well as the maximum age of the PDF rendered on the server. See [PDFRequestOptions class](#pdfrequestoptions-class) for more details.
3417
3417
3418
3418
**Exceptions**
3419
3419
@@ -4125,7 +4125,7 @@ This endpoint is available with REST API version 3.4 and up.
4125
4125
Name | description
4126
4126
:--- | :---
4127
4127
`workbook_item` | Specifies the workbook to populate.
4128
-
`req_options` | (Optional) You can pass in request options to specify the page type and orientation of the PDF content, as well as the maximum age of the PDF rendered on the server. If not specified, PDF content will have default page type and orientation. The maximum PDF cache time is the value of `maxage` in minutes, and must be an integer between 1 and 240. A value of zero will cause the minimum cache time of 1 minute. A value of -1 will cache PDF files for the time configured in server settings. See [PDFRequestOptions class](#pdfrequestoptions-class) for more details.
4128
+
`req_options` | (Optional) You can pass in request options to specify the page type and orientation of the PDF content, as well as the maximum age of the PDF rendered on the server. See [PDFRequestOptions class](#pdfrequestoptions-class) for more details.
0 commit comments