All URIs are relative to https://localhost:8080/api/v9
Method | HTTP request | Description |
---|---|---|
get_me_export | GET /me/export | Get a list of objects to be downloaded |
get_me_export_data_uuid_zip | GET /me/export/data/{uuid}.zip | Get the zip file with download requests |
get_workspace_exports | GET /workspaces/{workspace_id}/exports | Get a list with the workspace download requests |
get_workspace_exports_data_uuid_zip | GET /workspaces/{workspace_id}/exports/data/{uuid}.zip | Get the zip file with workspace download requests |
insights_api_v1_workspace_workspace_id_profitability_employees_extension_post | POST /insights/api/v1/workspace/{workspace_id}/profitability/employees.{extension} | Export employee profitability insights |
insights_api_v1_workspace_workspace_id_profitability_projects_extension_post | POST /insights/api/v1/workspace/{workspace_id}/profitability/projects.{extension} | Export profitability project insights |
insights_api_v1_workspace_workspace_id_trends_projects_extension_post | POST /insights/api/v1/workspace/{workspace_id}/trends/projects.{extension} | Export projects data trends |
post_me_export | POST /me/export | Post an object which data to be downloaded |
post_workspace_exports | POST /workspaces/{workspace_id}/exports | Post a list with the workspace to be downloaded |
reports_api_v3_shared_report_token_csv_post | POST /reports/api/v3/shared/{report_token}.csv | Export CSV for saved report |
reports_api_v3_shared_report_token_pdf_post | POST /reports/api/v3/shared/{report_token}/pdf | Export saved report in pdf format |
reports_api_v3_shared_report_token_xlsx_post | POST /reports/api/v3/shared/{report_token}.xlsx | Export XSLX saved report |
reports_api_v3_workspace_workspace_id_search_time_entries_extension_post | POST /reports/api/v3/workspace/{workspace_id}/search/time_entries.{extension} | Export detailed report |
reports_api_v3_workspace_workspace_id_search_time_entries_pdf_post | POST /reports/api/v3/workspace/{workspace_id}/search/time_entries.pdf | Export detailed report |
reports_api_v3_workspace_workspace_id_summary_time_entries_extension_post | POST /reports/api/v3/workspace/{workspace_id}/summary/time_entries.{extension} | Export summary report |
reports_api_v3_workspace_workspace_id_summary_time_entries_pdf_post | POST /reports/api/v3/workspace/{workspace_id}/summary/time_entries.pdf | Export summary report |
reports_api_v3_workspace_workspace_id_weekly_time_entries_csv_post | POST /reports/api/v3/workspace/{workspace_id}/weekly/time_entries.csv | Export weekly report |
reports_api_v3_workspace_workspace_id_weekly_time_entries_pdf_post | POST /reports/api/v3/workspace/{workspace_id}/weekly/time_entries.pdf | Export weekly report |
list[ModelsDownloadRequestRecord] get_me_export()
Get a list of objects to be downloaded
List of objects to be downloaded for an user
from __future__ import print_function
import time
import toggl
from toggl.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
configuration = toggl.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = toggl.ExportsApi(toggl.ApiClient(configuration))
try:
# Get a list of objects to be downloaded
api_response = api_instance.get_me_export()
pprint(api_response)
except ApiException as e:
print("Exception when calling ExportsApi->get_me_export: %s\n" % e)
This endpoint does not need any parameter.
list[ModelsDownloadRequestRecord]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str get_me_export_data_uuid_zip()
Get the zip file with download requests
Get a zip file List of download requests from an user.
from __future__ import print_function
import time
import toggl
from toggl.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
configuration = toggl.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = toggl.ExportsApi(toggl.ApiClient(configuration))
try:
# Get the zip file with download requests
api_response = api_instance.get_me_export_data_uuid_zip()
pprint(api_response)
except ApiException as e:
print("Exception when calling ExportsApi->get_me_export_data_uuid_zip: %s\n" % e)
This endpoint does not need any parameter.
str
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[ModelsDownloadRequestRecord] get_workspace_exports(workspace_id)
Get a list with the workspace download requests
List of workspace download requests from a given workspace.
from __future__ import print_function
import time
import toggl
from toggl.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
configuration = toggl.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = toggl.ExportsApi(toggl.ApiClient(configuration))
workspace_id = 56 # int | Numeric ID of the workspace
try:
# Get a list with the workspace download requests
api_response = api_instance.get_workspace_exports(workspace_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling ExportsApi->get_workspace_exports: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
workspace_id | int | Numeric ID of the workspace |
list[ModelsDownloadRequestRecord]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str get_workspace_exports_data_uuid_zip(workspace_id)
Get the zip file with workspace download requests
Send a zip file List of workspace download requests from a given workspace.
from __future__ import print_function
import time
import toggl
from toggl.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
configuration = toggl.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = toggl.ExportsApi(toggl.ApiClient(configuration))
workspace_id = 56 # int | Numeric ID of the workspace
try:
# Get the zip file with workspace download requests
api_response = api_instance.get_workspace_exports_data_uuid_zip(workspace_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling ExportsApi->get_workspace_exports_data_uuid_zip: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
workspace_id | int | Numeric ID of the workspace |
str
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str insights_api_v1_workspace_workspace_id_profitability_employees_extension_post(parameters)
Export employee profitability insights
Downloads employee profitability insights in the specified format: csv or xlsx.
from __future__ import print_function
import time
import toggl
from toggl.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
configuration = toggl.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = toggl.ExportsApi(toggl.ApiClient(configuration))
parameters = toggl.RequestsEmployeeProfitability() # RequestsEmployeeProfitability | Parameters for report
try:
# Export employee profitability insights
api_response = api_instance.insights_api_v1_workspace_workspace_id_profitability_employees_extension_post(parameters)
pprint(api_response)
except ApiException as e:
print("Exception when calling ExportsApi->insights_api_v1_workspace_workspace_id_profitability_employees_extension_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
parameters | RequestsEmployeeProfitability | Parameters for report |
str
- Content-Type: Not defined
- Accept: text/csv, text/xlsx
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str insights_api_v1_workspace_workspace_id_profitability_projects_extension_post(parameters, extension)
Export profitability project insights
Downloads profitability project insights in the specified format: csv or xlsx.
from __future__ import print_function
import time
import toggl
from toggl.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
configuration = toggl.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = toggl.ExportsApi(toggl.ApiClient(configuration))
parameters = toggl.RequestsProjectProfitability() # RequestsProjectProfitability | Parameters for report
extension = 'extension_example' # str | csv,xlsx
try:
# Export profitability project insights
api_response = api_instance.insights_api_v1_workspace_workspace_id_profitability_projects_extension_post(parameters, extension)
pprint(api_response)
except ApiException as e:
print("Exception when calling ExportsApi->insights_api_v1_workspace_workspace_id_profitability_projects_extension_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
parameters | RequestsProjectProfitability | Parameters for report | |
extension | str | csv,xlsx |
str
- Content-Type: Not defined
- Accept: text/csv, text/xlsx
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[ProjectsProjectTrends] insights_api_v1_workspace_workspace_id_trends_projects_extension_post(workspace_id, extension, project_trend=project_trend)
Export projects data trends
Downloads projects data trends in the specified format: csv or xlsx.
from __future__ import print_function
import time
import toggl
from toggl.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
configuration = toggl.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = toggl.ExportsApi(toggl.ApiClient(configuration))
workspace_id = 56 # int | Workspace ID
extension = 'extension_example' # str | csv,xlsx
project_trend = toggl.ProjectsProjectTrend() # ProjectsProjectTrend | Projects filter conditions (optional)
try:
# Export projects data trends
api_response = api_instance.insights_api_v1_workspace_workspace_id_trends_projects_extension_post(workspace_id, extension, project_trend=project_trend)
pprint(api_response)
except ApiException as e:
print("Exception when calling ExportsApi->insights_api_v1_workspace_workspace_id_trends_projects_extension_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
workspace_id | int | Workspace ID | |
extension | str | csv,xlsx | |
project_trend | ProjectsProjectTrend | Projects filter conditions | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str post_me_export(data_export_object)
Post an object which data to be downloaded
An object which data to be downloaded for an user
from __future__ import print_function
import time
import toggl
from toggl.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
configuration = toggl.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = toggl.ExportsApi(toggl.ApiClient(configuration))
data_export_object = toggl.ExportPayload() # ExportPayload | Objects to export
try:
# Post an object which data to be downloaded
api_response = api_instance.post_me_export(data_export_object)
pprint(api_response)
except ApiException as e:
print("Exception when calling ExportsApi->post_me_export: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
data_export_object | ExportPayload | Objects to export |
str
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str post_workspace_exports(workspace_id, tokens_list)
Post a list with the workspace to be downloaded
List of workspaces downloaded from a given workspace.
from __future__ import print_function
import time
import toggl
from toggl.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
configuration = toggl.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = toggl.ExportsApi(toggl.ApiClient(configuration))
workspace_id = 56 # int | Numeric ID of the workspace
tokens_list = [toggl.list[str]()] # list[str] | Objects to export
try:
# Post a list with the workspace to be downloaded
api_response = api_instance.post_workspace_exports(workspace_id, tokens_list)
pprint(api_response)
except ApiException as e:
print("Exception when calling ExportsApi->post_workspace_exports: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
workspace_id | int | Numeric ID of the workspace | |
tokens_list | list[str] | Objects to export |
str
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str reports_api_v3_shared_report_token_csv_post(report_token, start_date=start_date, end_date=end_date)
Export CSV for saved report
Downloads a previously saved report in csv.
Authentication
A public report is accessible by anyone, a private one is only accessible by the report's owner or workspace admin. If the criteria aren't met it returns 403 status code.
Parameters
The report can be executed without parameters, and in this case the saved or default parameters will be used.
from __future__ import print_function
import time
import toggl
from toggl.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = toggl.ExportsApi()
report_token = 'report_token_example' # str | Token for the saved report
start_date = 'start_date_example' # str | Starting date in the format YYYY-MM-DD (optional)
end_date = 'end_date_example' # str | End date in the format YYYY-MM-DD (optional)
try:
# Export CSV for saved report
api_response = api_instance.reports_api_v3_shared_report_token_csv_post(report_token, start_date=start_date, end_date=end_date)
pprint(api_response)
except ApiException as e:
print("Exception when calling ExportsApi->reports_api_v3_shared_report_token_csv_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
report_token | str | Token for the saved report | |
start_date | str | Starting date in the format YYYY-MM-DD | [optional] |
end_date | str | End date in the format YYYY-MM-DD | [optional] |
str
No authorization required
- Content-Type: text/plain
- Accept: text/csv
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str reports_api_v3_shared_report_token_pdf_post(report_token, start_date=start_date, end_date=end_date, display_mode=display_mode)
Export saved report in pdf format
Authentication
A public report is accessible by anyone, a private one is only accessible by the report's owner or workspace admin. If the criteria aren't met it returns 403 status code.
Parameters
The report can be executed without parameters, and in this case the saved or default parameters will be used.
from __future__ import print_function
import time
import toggl
from toggl.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = toggl.ExportsApi()
report_token = 'report_token_example' # str | Token for the saved report
start_date = 'start_date_example' # str | Starting date in the format YYYY-MM-DD (optional)
end_date = 'end_date_example' # str | End date in the format YYYY-MM-DD (optional)
display_mode = 'display_mode_example' # str | Display mode for time data, only for detailed reports. Possible values: 'date_only', 'time_only', 'date_time'. Default value: 'date_and_time' (optional)
try:
# Export saved report in pdf format
api_response = api_instance.reports_api_v3_shared_report_token_pdf_post(report_token, start_date=start_date, end_date=end_date, display_mode=display_mode)
pprint(api_response)
except ApiException as e:
print("Exception when calling ExportsApi->reports_api_v3_shared_report_token_pdf_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
report_token | str | Token for the saved report | |
start_date | str | Starting date in the format YYYY-MM-DD | [optional] |
end_date | str | End date in the format YYYY-MM-DD | [optional] |
display_mode | str | Display mode for time data, only for detailed reports. Possible values: 'date_only', 'time_only', 'date_time'. Default value: 'date_and_time' | [optional] |
str
No authorization required
- Content-Type: text/plain
- Accept: application/pdf
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str reports_api_v3_shared_report_token_xlsx_post(report_token, start_date=start_date, end_date=end_date)
Export XSLX saved report
Downloads a previously saved report in xlsx.
Authentication
A public report is accessible by anyone, a private one is only accessible by the report's owner or workspace admin. If the criteria aren't met it returns 403 status code.
Parameters
The report can be executed without parameters, and in this case the saved or default parameters will be used.
from __future__ import print_function
import time
import toggl
from toggl.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = toggl.ExportsApi()
report_token = 'report_token_example' # str | Token for the saved report
start_date = 'start_date_example' # str | Starting date in the format YYYY-MM-DD (optional)
end_date = 'end_date_example' # str | End date in the format YYYY-MM-DD (optional)
try:
# Export XSLX saved report
api_response = api_instance.reports_api_v3_shared_report_token_xlsx_post(report_token, start_date=start_date, end_date=end_date)
pprint(api_response)
except ApiException as e:
print("Exception when calling ExportsApi->reports_api_v3_shared_report_token_xlsx_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
report_token | str | Token for the saved report | |
start_date | str | Starting date in the format YYYY-MM-DD | [optional] |
end_date | str | End date in the format YYYY-MM-DD | [optional] |
str
No authorization required
- Content-Type: text/plain
- Accept: text/xlsx
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str reports_api_v3_workspace_workspace_id_search_time_entries_extension_post(workspace_id, extension, detailed_export_post)
Export detailed report
Downloads detailed report in the specified format: csv or xlsx.
from __future__ import print_function
import time
import toggl
from toggl.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
configuration = toggl.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = toggl.ExportsApi(toggl.ApiClient(configuration))
workspace_id = 56 # int | Workspace ID
extension = 'extension_example' # str | csv,xlsx
detailed_export_post = toggl.DetailedSearchExportPost() # DetailedSearchExportPost | Detailed report conditions
try:
# Export detailed report
api_response = api_instance.reports_api_v3_workspace_workspace_id_search_time_entries_extension_post(workspace_id, extension, detailed_export_post)
pprint(api_response)
except ApiException as e:
print("Exception when calling ExportsApi->reports_api_v3_workspace_workspace_id_search_time_entries_extension_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
workspace_id | int | Workspace ID | |
extension | str | csv,xlsx | |
detailed_export_post | DetailedSearchExportPost | Detailed report conditions |
str
- Content-Type: Not defined
- Accept: text/csv, text/xlsx
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str reports_api_v3_workspace_workspace_id_search_time_entries_pdf_post(workspace_id, detailed_export_pdf_post)
Export detailed report
Downloads detailed report in pdf format.
from __future__ import print_function
import time
import toggl
from toggl.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
configuration = toggl.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = toggl.ExportsApi(toggl.ApiClient(configuration))
workspace_id = 56 # int | Workspace ID
detailed_export_pdf_post = toggl.DetailedExportPDFPost() # DetailedExportPDFPost | Detailed report conditions
try:
# Export detailed report
api_response = api_instance.reports_api_v3_workspace_workspace_id_search_time_entries_pdf_post(workspace_id, detailed_export_pdf_post)
pprint(api_response)
except ApiException as e:
print("Exception when calling ExportsApi->reports_api_v3_workspace_workspace_id_search_time_entries_pdf_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
workspace_id | int | Workspace ID | |
detailed_export_pdf_post | DetailedExportPDFPost | Detailed report conditions |
str
- Content-Type: Not defined
- Accept: application/pdf
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str reports_api_v3_workspace_workspace_id_summary_time_entries_extension_post(workspace_id, extension, summary_export_post)
Export summary report
Downloads summary report in the specified in the specified format: csv or xlsx.
from __future__ import print_function
import time
import toggl
from toggl.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = toggl.ExportsApi()
workspace_id = 56 # int | Workspace ID
extension = 'extension_example' # str | csv,xlsx
summary_export_post = toggl.SummaryExportPost() # SummaryExportPost | Summary report conditions
try:
# Export summary report
api_response = api_instance.reports_api_v3_workspace_workspace_id_summary_time_entries_extension_post(workspace_id, extension, summary_export_post)
pprint(api_response)
except ApiException as e:
print("Exception when calling ExportsApi->reports_api_v3_workspace_workspace_id_summary_time_entries_extension_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
workspace_id | int | Workspace ID | |
extension | str | csv,xlsx | |
summary_export_post | SummaryExportPost | Summary report conditions |
str
No authorization required
- Content-Type: Not defined
- Accept: text/csv, text/xlsx
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str reports_api_v3_workspace_workspace_id_summary_time_entries_pdf_post(workspace_id, summary_export_pdf_post)
Export summary report
Downloads summary report in pdf format.
from __future__ import print_function
import time
import toggl
from toggl.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
configuration = toggl.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = toggl.ExportsApi(toggl.ApiClient(configuration))
workspace_id = 56 # int | Workspace ID
summary_export_pdf_post = toggl.SummaryExportPDFPost() # SummaryExportPDFPost | Summary report conditions
try:
# Export summary report
api_response = api_instance.reports_api_v3_workspace_workspace_id_summary_time_entries_pdf_post(workspace_id, summary_export_pdf_post)
pprint(api_response)
except ApiException as e:
print("Exception when calling ExportsApi->reports_api_v3_workspace_workspace_id_summary_time_entries_pdf_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
workspace_id | int | Workspace ID | |
summary_export_pdf_post | SummaryExportPDFPost | Summary report conditions |
str
- Content-Type: Not defined
- Accept: application/pdf
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str reports_api_v3_workspace_workspace_id_weekly_time_entries_csv_post(workspace_id, weekly_export_post)
Export weekly report
Downloads weekly report in csv format.
from __future__ import print_function
import time
import toggl
from toggl.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
configuration = toggl.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = toggl.ExportsApi(toggl.ApiClient(configuration))
workspace_id = 56 # int | Workspace ID
weekly_export_post = toggl.WeeklyExportPost() # WeeklyExportPost | Weekly report conditions
try:
# Export weekly report
api_response = api_instance.reports_api_v3_workspace_workspace_id_weekly_time_entries_csv_post(workspace_id, weekly_export_post)
pprint(api_response)
except ApiException as e:
print("Exception when calling ExportsApi->reports_api_v3_workspace_workspace_id_weekly_time_entries_csv_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
workspace_id | int | Workspace ID | |
weekly_export_post | WeeklyExportPost | Weekly report conditions |
str
- Content-Type: Not defined
- Accept: text/csv
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str reports_api_v3_workspace_workspace_id_weekly_time_entries_pdf_post(workspace_id, weekly_export_pdf_post)
Export weekly report
Downloads weekly report in pdf format.
from __future__ import print_function
import time
import toggl
from toggl.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
configuration = toggl.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = toggl.ExportsApi(toggl.ApiClient(configuration))
workspace_id = 56 # int | Workspace ID
weekly_export_pdf_post = toggl.WeeklyExportPDFPost() # WeeklyExportPDFPost | Weekly report conditions
try:
# Export weekly report
api_response = api_instance.reports_api_v3_workspace_workspace_id_weekly_time_entries_pdf_post(workspace_id, weekly_export_pdf_post)
pprint(api_response)
except ApiException as e:
print("Exception when calling ExportsApi->reports_api_v3_workspace_workspace_id_weekly_time_entries_pdf_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
workspace_id | int | Workspace ID | |
weekly_export_pdf_post | WeeklyExportPDFPost | Weekly report conditions |
str
- Content-Type: Not defined
- Accept: application/pdf
[Back to top] [Back to API list] [Back to Model list] [Back to README]