ClicksendsmsClient
Attributes
TRIGGER_OPERATIONS
module-attribute
TRIGGER_OPERATIONS: Dict[str, Dict[str, Any]] = {'sms_inbound_automation': {'operation_id': 'sms_inbound_automation', 'path': '/{connectionId}/ms-flow/automations/sms/inbound', 'method': 'post', 'required_parameters': ['body'], 'callback_payload_type': None}}
Classes
SmsSendInput
dataclass
SmsSendResponse
dataclass
SmsSendResponse(http_code: Optional[int] = None, response_code: Optional[str] = None, response_msg: Optional[str] = None, data: Optional[Dict[str, Any]] = None)
Response for Send SMS
Attributes
CreateListInput
dataclass
CreateListResponse
dataclass
CreateListResponse(http_code: Optional[int] = None, response_code: Optional[str] = None, response_msg: Optional[str] = None, data: Optional[Dict[str, Any]] = None)
Response for Create New Contact List
Attributes
GetContactListsResponse
dataclass
GetContactListsResponse(http_code: Optional[int] = None, response_code: Optional[str] = None, response_msg: Optional[str] = None, data: Optional[Dict[str, Any]] = None)
Response for Get Contact Lists
Attributes
SendVoiceInput
dataclass
SendVoiceResponse
dataclass
SendVoiceResponse(http_code: Optional[int] = None, response_code: Optional[str] = None, response_msg: Optional[str] = None, data: Optional[Dict[str, Any]] = None)
Response for Send Voice Message
Attributes
DeleteListResponse
dataclass
DeleteListResponse(http_code: Optional[int] = None, response_code: Optional[str] = None, response_msg: Optional[str] = None)
Response for Delete List
CreateListContactInput
dataclass
CreateListContactInput(first_name: Optional[str] = None, last_name: Optional[str] = None, phone_number: Optional[str] = None, email: Optional[str] = None, fax_number: Optional[str] = None, organization_name: Optional[str] = None, address_country: Optional[str] = None, address_state: Optional[str] = None, address_city: Optional[str] = None, custom1: Optional[str] = None, custom3: Optional[str] = None, address_postal_code: Optional[str] = None, custom2: Optional[str] = None, custom4: Optional[str] = None, address_line1: Optional[str] = None, address_line2: Optional[str] = None)
Create New Contact
Attributes
first_name
class-attribute
instance-attribute
Contact's first name.
phone_number
class-attribute
instance-attribute
The contact phone in local or international format e.g. +61411111111.
fax_number
class-attribute
instance-attribute
Contact's fax number.
organization_name
class-attribute
instance-attribute
Contact's organization name.
address_country
class-attribute
instance-attribute
The contact's country.
custom1
class-attribute
instance-attribute
Custom 1
custom3
class-attribute
instance-attribute
Custom 3
custom2
class-attribute
instance-attribute
Custom 2
custom4
class-attribute
instance-attribute
Custom 4
address_line1
class-attribute
instance-attribute
Address Line 1
CreateListContactResponse
dataclass
CreateListContactResponse(http_code: Optional[int] = None, response_code: Optional[str] = None, response_msg: Optional[str] = None, data: Optional[Dict[str, Any]] = None)
Response for Create New Contact
Attributes
ViewListContactsResponse
dataclass
ViewListContactsResponse(http_code: Optional[int] = None, response_code: Optional[str] = None, response_msg: Optional[str] = None, data: Optional[Dict[str, Any]] = None)
Response for Get Contacts in a List
Attributes
DeleteListContactResponse
dataclass
DeleteListContactResponse(http_code: Optional[int] = None, response_code: Optional[str] = None, response_msg: Optional[str] = None)
Response for Delete a Contact
SendMmsInput
dataclass
SendMmsResponse
dataclass
SendMmsResponse(http_code: Optional[int] = None, response_code: Optional[str] = None, response_msg: Optional[str] = None, data: Optional[Dict[str, Any]] = None)
Response for Send MMS
Attributes
SendFaxInput
dataclass
Send Fax
Attributes
SendFaxResponse
dataclass
SendFaxResponse(http_code: Optional[int] = None, response_code: Optional[str] = None, response_msg: Optional[str] = None, data: Optional[Dict[str, Any]] = None)
Response for Send Fax
Attributes
UploadMediaInput
dataclass
UploadMediaResponse
dataclass
UploadMediaResponse(http_code: Optional[int] = None, response_code: Optional[str] = None, response_msg: Optional[str] = None, data: Optional[Dict[str, Any]] = None)
Response for Convert Media File Format
Attributes
SearchContactListResponse
dataclass
SearchContactListResponse(http_code: Optional[int] = None, response_code: Optional[str] = None, response_msg: Optional[str] = None, data: Optional[Dict[str, Any]] = None)
Response for Search Contact Lists
Attributes
SendLetterInput
dataclass
SendLetterInput(file_url: Optional[str] = None, template_used: Optional[int] = None, colour: Optional[int] = None, duplex: Optional[int] = None, priority_post: Optional[int] = None, recipients: Optional[List[Dict[str, Any]]] = None, source: Optional[str] = None)
Send Letter
Attributes
file_url
class-attribute
instance-attribute
Maximum file size is 10 MB. All pages should be in portrait. Chat with ClickSend Support for complete specifications.
template_used
class-attribute
instance-attribute
Whether using letter template. Flag value must be 1 for yes or 0 for no.
colour
class-attribute
instance-attribute
Choose to use colour or B&W printing. (Black & White = 0, Colour = 1)
duplex
class-attribute
instance-attribute
Choose to use Duplex = 1 (double-sided) or Simplex = 0(single sided) printing.
priority_post
class-attribute
instance-attribute
Whether letter is priority, Flag value must be 1 for yes or 0 for no.
recipients
class-attribute
instance-attribute
Recipient
SendLetterResponse
dataclass
SendLetterResponse(http_code: Optional[int] = None, response_code: Optional[str] = None, response_msg: Optional[str] = None, data: Optional[Dict[str, Any]] = None)
Response for Send Letter
Attributes
SendPostcardInput
dataclass
SendPostcardResponse
dataclass
SendPostcardResponse(http_code: Optional[int] = None, response_code: Optional[str] = None, response_msg: Optional[str] = None, data: Optional[Dict[str, Any]] = None)
Response for Send Postcard
Attributes
SmsInboundAutomationInput
dataclass
SmsInboundAutomationInput(message_search_type: Optional[int] = None, message_search_term: Optional[str] = None, action_address: Optional[str] = None, dedicated_number: Optional[str] = None, rule_name: Optional[str] = None, webhook_type: Optional[str] = None, action: Optional[str] = None, enabled: Optional[int] = None)
SMS Inbound Automation
Attributes
message_search_type
class-attribute
instance-attribute
Message Search Type: 0=Any message, 1=starts with, 2=contains, 3=does not contain.
message_search_term
class-attribute
instance-attribute
word or phrase in the SMS
action_address
class-attribute
instance-attribute
Action address
dedicated_number
class-attribute
instance-attribute
Decicated Number. Can be '*' to apply to all numbers.
action
class-attribute
instance-attribute
Action to be taken (AUTO_REPLY, EMAIL_USER, EMAIL_FIXED, URL, SMS, POLL, GROUP_SMS, MOVE_CONTACT, CREATE_CONTACT, CREATE_CONTACT_PLUS_EMAIL, CREATE_CONTACT_PLUS_NAME_EMAIL CREATE_CONTACT_PLUS_NAME, SMPP, NONE).
ClicksendsmsClient
ClicksendsmsClient(connection_runtime_url: str, token_provider: Optional[TokenProvider] = None, options: Optional[ConnectorClientOptions] = None)
Bases: ConnectorClientBase
Typed client for clicksendsms connector.
Initialize a ClicksendsmsClient.
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:
sms_send_async
async
Send SMS
Each 160 characters = 1 SMS. Can send up to 1,224 standard characters.
create_list_async
async
Create New Contact List
Create New Contact List
get_contact_lists_async
async
get_contact_lists_async(page: Optional[int] = None, limit: Optional[int] = None) -> dict[str, Any] | None
Get Contact Lists
Get all contact lists unless specified in the advance options
send_voice_async
async
Send Voice Message
Each 300 characters = 1 voice message. Can send up to 1,200 standard characters
delete_list_async
async
Delete List
Delete a specific contact list
create_list_contact_async
async
Create New Contact
Create New Contact
view_list_contacts_async
async
Get Contacts in a List
Get all Contacts in a List
delete_list_contact_async
async
Delete a Contact
Delete a Contact
upload_media_async
async
Convert Media File Format
Convert Media File Format
search_contact_list_async
async
Search Contact Lists
Get list of searched contact list
send_letter_async
async
Send Letter
Send Letter