SendgridClient
Attributes
Classes
AddGlobalSuppressRequestAndResponse
dataclass
GetGlobalSuppressResponse
dataclass
ObjectEntity
dataclass
EmailIsUnsubscribedResponse
dataclass
RecipientLists
dataclass
Recipients
dataclass
EmailResponse
dataclass
GetGlobalSuppressEmptyResponse
dataclass
EmailRequest
dataclass
EmailRequest(attachments: Optional[List[EmailAttachment]] = None, from_: Optional[str] = None, fromname: Optional[str] = None, to: Optional[str] = None, toname: Optional[str] = None, subject: Optional[str] = None, text: Optional[str] = None, ishtml: Optional[bool] = None, cc: Optional[str] = None, ccname: Optional[str] = None, bcc: Optional[str] = None, bccname: Optional[str] = None)
Definition: EmailRequest
Attributes
attachments
class-attribute
instance-attribute
Attachments
from_
class-attribute
instance-attribute
Origination address of your email. Must be a valid email address from your domain
fromname
class-attribute
instance-attribute
Origination name of your email
to
class-attribute
instance-attribute
Valid email addresses separated by a semicolon or comma
toname
class-attribute
instance-attribute
A display name for each email address separated by a semicolon or comma
ishtml
class-attribute
instance-attribute
Specify whether the content of the email is HTML or plain text
cc
class-attribute
instance-attribute
Valid email addresses separated by a semicolon or comma
ccname
class-attribute
instance-attribute
A display name for each CC email address separated by a semicolon or comma
bcc
class-attribute
instance-attribute
Valid email addresses separated by a semicolon or comma
EmailAttachment
dataclass
EmailAttachment(content: Optional[str] = None, filename: Optional[str] = None, contenttype: Optional[str] = None)
Definition: EmailAttachment
Attributes
RecipientList
dataclass
Recipient
dataclass
Recipient(email: Optional[str] = None, last_name: Optional[str] = None, first_name: Optional[str] = None, id: Optional[str] = None)
Definition: Recipient
Attributes
ScopeList
dataclass
Bounce
dataclass
Bounce(created: Optional[int] = None, email: Optional[str] = None, reason: Optional[str] = None, status: Optional[str] = None)
Definition: Bounce
Attributes
SendgridClient
SendgridClient(connection_runtime_url: str, token_provider: Optional[TokenProvider] = None, options: Optional[ConnectorClientOptions] = None)
Bases: ConnectorClientBase
Typed client for sendgrid connector.
Initialize a SendgridClient.
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:
add_global_suppression_async
async
Add a global suppression
Add a global suppression
get_global_suppression_async
async
Get the global suppression
Get the global suppression
delete_global_suppression_async
async
Delete the global suppression
Delete the global suppression
add_recipient_to_list_async
async
Add recipient to list
Add an individual recipient to a recipient list.
get_bounce_async
async
Get bounce for an email
Get a specific bounce for a given email address.
delete_bounce_async
async
Delete an email from bounce list
Delete an email address from your bounce list.
check_email_is_in_unsubscribes_list_async
async
Check if email is in unsubscribed email list
Check if email is in unsubscribed email list.
send_email_async
async
Send email
Sends an email (V4). Limited to 1000 recipients.
list_recipient_lists_async
async
List Recipient Lists
Retrieves all the recipient lists.