A Python library to send Email using NHN Cloud API
Project description
NHNCloudEmail
This is a Python library for interacting with the NHN Cloud Email service.
Current version: 0.1.7
Installation
To use this library, you need to have Python installed. You can install the required dependencies using pip:
pip install -U nhncloud-email
Usage
Initialization
First, you need to initialize the NHNCloudEmail class with your NHN Cloud app key, secret key, and sender email address.
from nhncloud_email import NHNCloudEmail
email_service = NHNCloudEmail(
app_key='your_app_key',
secret_key='your_secret_key',
sender_email='your_sender_email'
)
Sending Email
To send a single email, use the send_email method:
response = email_service.send_email('recipient_email', 'Your Subject', 'Your message body')
print(response)
Sending Bulk Email
To send bulk emails, use the send_bulk_email method:
recipient_emails = ['recipient1_email', 'recipient2_email']
response = email_service.send_bulk_email(recipient_emails, 'Your Subject', 'Your bulk message body')
print(response)
Scheduling Email
To schedule an email, use the schedule_email method:
response = email_service.schedule_email('recipient_email', 'Your Subject', 'Your scheduled message body', 'schedule_time')
print(response)
Getting Email Status
To get the status of a sent email, use the get_email_status method:
response = email_service.get_email_status('request_id')
print(response)
Getting Sent Email List
To get a list of sent emails within a specific date range, use the get_sent_email_list method:
response = email_service.get_sent_email_list('start_date', 'end_date')
print(response)
Make sure to replace placeholders (like 'your_app_key'
, 'your_secret_key'
, etc.) with actual values before using the library.
Contact
Please contact dev@runners.im
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file nhncloud-email-0.1.7.tar.gz
.
File metadata
- Download URL: nhncloud-email-0.1.7.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 538d6e156ba776930e376fe85cac807b60d31a88aa7d95f01aa5fdb668ae1f05 |
|
MD5 | ef3361654e83b4d5c8844e9903175659 |
|
BLAKE2b-256 | 704cf99f51760b33a7785ccbdb29d1b759e1999b5c0a7dd77928bd4a1795640a |
File details
Details for the file nhncloud_email-0.1.7-py3-none-any.whl
.
File metadata
- Download URL: nhncloud_email-0.1.7-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.8.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f41fae52c7cbff0637484c143af60ad75e54e762ac4d36882521a2a256097284 |
|
MD5 | bb9cde123014c548b72be413f4e6a77a |
|
BLAKE2b-256 | 082b92585dbea37697e5f369045b7c5f56ea3669bf93b368c6089a4e0d9fe920 |