Skip to content

InfusionsoftClient

Attributes

OnNewTaskResponse module-attribute

OnNewTaskResponse = List['TaskResponse']

ListOrdersResponse module-attribute

ListOrdersResponse = List[Dict[str, Any]]

TRIGGER_OPERATIONS module-attribute

TRIGGER_OPERATIONS: Dict[str, Dict[str, Any]] = {'OnNewTask': {'operation_id': 'OnNewTask', 'path': '/{connectionId}/trigger/crm/rest/v1/tasks/search', 'method': 'get', 'required_parameters': [], 'callback_payload_type': 'OnNewTaskResponse'}, 'OnNewOrder': {'operation_id': 'OnNewOrder', 'path': '/{connectionId}/trigger/crm/rest/v1/orders', 'method': 'get', 'required_parameters': [], 'callback_payload_type': 'ListOrdersResponse'}}

Classes

TaskResponse dataclass

TaskResponse(id: Optional[int] = None, title: Optional[str] = None, description: Optional[str] = None, type_: Optional[str] = None, priority: Optional[int] = None, completed: Optional[bool] = None, url: Optional[str] = None, due_date: Optional[str] = None)

Response for Create a task

Attributes

id class-attribute instance-attribute
id: Optional[int] = None

An integer that uniquely identifies this task.

title class-attribute instance-attribute
title: Optional[str] = None

The actual task name (Do this thing).

description class-attribute instance-attribute
description: Optional[str] = None

A description of the task defined by the user.

type_ class-attribute instance-attribute
type_: Optional[str] = field(default=None, metadata={'wire_name': 'type'})

A string representing the type of Task as defined by the user from a list of types editable in the Infusionsoft application.

priority class-attribute instance-attribute
priority: Optional[int] = None

The priority of the task.

completed class-attribute instance-attribute
completed: Optional[bool] = None

A boolean indicating the completed status of the task.

url class-attribute instance-attribute
url: Optional[str] = None

The link to the task.

due_date class-attribute instance-attribute
due_date: Optional[str] = None

The datetime the task is due, given as GMT in ISO 8601 format.

ListTasksResponse dataclass

ListTasksResponse(tasks: Optional[List[Dict[str, Any]]] = None)

Response for List tasks

Attributes

tasks class-attribute instance-attribute
tasks: Optional[List[Dict[str, Any]]] = None

Collection of tasks.

CreateTaskRequest dataclass

CreateTaskRequest(title: Optional[str] = None, description: Optional[str] = None, type_: Optional[str] = None, priority: Optional[int] = None, due_date: Optional[str] = None)

Definition: CreateTask_Request

Attributes

title class-attribute instance-attribute
title: Optional[str] = None

The title of the task.

description class-attribute instance-attribute
description: Optional[str] = None

A description of the task title.

type_ class-attribute instance-attribute
type_: Optional[str] = field(default=None, metadata={'wire_name': 'type'})

Type of the task.

priority class-attribute instance-attribute
priority: Optional[int] = None

Priority of the task (1, 2, 3, etc.)

due_date class-attribute instance-attribute
due_date: Optional[str] = None

Due date of the task (Ex. 2014-06-17T17:12:52.000Z

InfusionsoftClient

InfusionsoftClient(connection_runtime_url: str, token_provider: Optional[TokenProvider] = None, options: Optional[ConnectorClientOptions] = None)

Bases: ConnectorClientBase

Typed client for infusionsoft connector.

Initialize a InfusionsoftClient.

Parameters:

Name Type Description Default
connection_runtime_url str

The connection runtime URL from Azure Portal.

required
token_provider Optional[TokenProvider]

Optional token provider. Defaults to ManagedIdentityTokenProvider.

None
options Optional[ConnectorClientOptions]

Optional connector client options.

None

Methods:

create_task_async async
create_task_async(input: CreateTaskRequest) -> dict[str, Any] | None

Create a task

Create a new task.

update_task_async async
update_task_async(input: CreateTaskRequest, id: int) -> dict[str, Any] | None

Update a task

Update an existing task.

list_tasks_async async
list_tasks_async() -> dict[str, Any] | None

List tasks

Retrieve a page of tasks ordered by due date.