Skip to main content

A Python library to send SMS using NHN Cloud API

Project description

NHNCloudSMS

This is a Python library for interacting with the NHN Cloud SMS service.

Current version: 0.1.5

Installation

To use this library, you need to have Python installed. You can install the required dependencies using pip:

pip install nhncloud-sms

Usage

Initialization

First, you need to initialize the NHNCloudSMS class with your NHN Cloud app key, secret key, and sender phone number.

from nhncloud_sms import NHNCloudSMS

sms_service = NHNCloudSMS(
    app_key='your_app_key',
    secret_key='your_secret_key',
    sender_phone_number='your_sender_phone_number'
)

Sending SMS

To send a single SMS, use the send_sms method:

response = sms_service.send_sms('recipient_phone_number', 'Your message here')
print(response)

Sending Bulk SMS

To send bulk SMS, use the send_bulk_sms method:

recipient_numbers = ['recipient1_phone_number', 'recipient2_phone_number']
response = sms_service.send_bulk_sms(recipient_numbers, 'Your bulk message here')
print(response)

Scheduling SMS

To schedule an SMS, use the schedule_sms method:

response = sms_service.schedule_sms('recipient_phone_number', 'Your scheduled message here', 'schedule_time')
print(response)

Getting SMS Status

To get the status of a sent SMS, use the get_sms_status method:

response = sms_service.get_sms_status('request_id')
print(response)

Getting Sent SMS List

To get a list of sent SMS messages within a specific date range, use the get_sent_sms_list method:

response = sms_service.get_sent_sms_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

nhncloud-sms-0.1.5.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

nhncloud_sms-0.1.5-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file nhncloud-sms-0.1.5.tar.gz.

File metadata

  • Download URL: nhncloud-sms-0.1.5.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.8.18

File hashes

Hashes for nhncloud-sms-0.1.5.tar.gz
Algorithm Hash digest
SHA256 810c8f359743b3ebe68e3481c787c5036d1b860fa23c74008f23ecdf5c5e15d7
MD5 164253737c0da161d408df953fb33462
BLAKE2b-256 f4f3467eefb3245131f62aa6815cd541489372d14e57dfa1c1c4a1eb5326f949

See more details on using hashes here.

File details

Details for the file nhncloud_sms-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for nhncloud_sms-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 6805b25d721e819792b13fefee6ce2dc232e81b7c786f5bd41fc4b47ec0daa7a
MD5 bee7a9ff6762b788a06813e14b7f8759
BLAKE2b-256 25ea7a9c8e56221189a1b55f1001e1a0dcf4925baf83bf625c5286a80038b433

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page