InfusionsoftClient
Attributes
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
An integer that uniquely identifies this task.
title
class-attribute
instance-attribute
The actual task name (Do this thing).
description
class-attribute
instance-attribute
A description of the task defined by the user.
type_
class-attribute
instance-attribute
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
The priority of the task.
completed
class-attribute
instance-attribute
A boolean indicating the completed status of the task.
ListTasksResponse
dataclass
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
description
class-attribute
instance-attribute
A description of the task title.
type_
class-attribute
instance-attribute
Type of the task.
priority
class-attribute
instance-attribute
Priority of the task (1, 2, 3, etc.)
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 a task
Create a new task.
update_task_async
async
Update a task
Update an existing task.