All URIs are relative to https://localhost:8080/api/v9
Method | HTTP request | Description |
---|---|---|
insights_api_v1_workspace_workspace_id_data_trends_projects_post | POST /insights/api/v1/workspace/{workspace_id}/data_trends/projects | Load projects' data trends |
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 |
list[ProjectsProjectTrends] insights_api_v1_workspace_workspace_id_data_trends_projects_post(workspace_id, project_trend_post)
Load projects' data trends
Returns the projects' data trends projects from a 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.InsightsApi(toggl.ApiClient(configuration))
workspace_id = 56 # int | Workspace ID
project_trend_post = toggl.ProjectsProjectTrend() # ProjectsProjectTrend | Projects filter conditions
try:
# Load projects' data trends
api_response = api_instance.insights_api_v1_workspace_workspace_id_data_trends_projects_post(workspace_id, project_trend_post)
pprint(api_response)
except ApiException as e:
print("Exception when calling InsightsApi->insights_api_v1_workspace_workspace_id_data_trends_projects_post: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
workspace_id | int | Workspace ID | |
project_trend_post | ProjectsProjectTrend | Projects filter conditions |
- 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.InsightsApi(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 InsightsApi->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.InsightsApi(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 InsightsApi->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.InsightsApi(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 InsightsApi->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]