OpenAPI that allows the user to create and manage a TODO list using ChatGPT.
This Python package is automatically generated by the OpenAPI Generator project:
- API version: v1
- Package version: 1.0.0
- Generator version: 7.11.0-SNAPSHOT
- Build package: org.openapitools.codegen.languages.PythonPydanticV1ClientCodegen
Python 3.7+
If the python package is hosted on a repository, you can install directly using:
pip install git+/~https://github.com/GIT_USER_ID/GIT_REPO_ID.git
(you may need to run pip
with root permission: sudo pip install git+/~https://github.com/GIT_USER_ID/GIT_REPO_ID.git
)
Then import the package:
import custom_components.ticktick_todo.pyticktick.openapi_client
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
import custom_components.ticktick_todo.pyticktick.openapi_client
Execute pytest
to run the tests.
Please follow the installation procedure and then run the following:
import time
import custom_components.ticktick_todo.pyticktick.openapi_client
from custom_components.ticktick_todo.pyticktick.openapi_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://ticktick.com
# See configuration.py for a list of all supported configuration parameters.
configuration = custom_components.ticktick_todo.pyticktick.openapi_client.Configuration(
host = "https://ticktick.com"
)
# Enter a context with an instance of the API client
async with custom_components.ticktick_todo.pyticktick.openapi_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = custom_components.ticktick_todo.pyticktick.openapi_client.DefaultApi(api_client)
project_id = 'project_id_example' # str | The ID of project which task in
task_id = 'task_id_example' # str | The ID of task
try:
# Complete a task by project ID and task ID
await api_instance.complete_specify_task(project_id, task_id)
except ApiException as e:
print("Exception when calling DefaultApi->complete_specify_task: %s\n" % e)
All URIs are relative to https://ticktick.com
Class | Method | HTTP request | Description |
---|---|---|---|
DefaultApi | complete_specify_task | POST /open/v1/project/{projectId}/task/{taskId}/complete | Complete a task by project ID and task ID |
DefaultApi | create_single_task | POST /open/v1/task | Create a task to TickTick |
DefaultApi | delete_specify_task | DELETE /open/v1/project/{projectId}/task/{taskId} | Delete a task by project ID and task ID |
DefaultApi | get_all_projects | GET /open/v1/project | Get the list of projects |
DefaultApi | get_project_by_id | GET /open/v1/project/{projectId} | Get a project by ID |
DefaultApi | get_project_with_data_by_id | GET /open/v1/project/{projectId}/data | Get project with data by ID |
Endpoints do not require authorization.