Skip to main content

React SMS SDK for Python

Project description

react-sms-sdk-python

React SMS SDK for Python

With this SDK, you can:

  • Send SMS

  • Check your balance

  • Create services

Package Installation

To install tihs package go to https://pypi.org/project/reactsms-sdk-python/ or run:

pip install reactsms-sdk-python==0.2.1

Package Usage

from react_sms_sdk_python.react_sms import ReactSMS


class SMSAPI():

    AUTH_KEY = "rs_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

    API_KEY = "rs_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

    SERVICE_KEY = "xxxxxx"

    def __init__(self):
        self.sdk = ReactSMS(SMSAPI.AUTH_KEY, SMSAPI.API_KEY, SMSAPI.SERVICE_KEY)
    
    def send_message(self, message:str, phones:list):
        return self.sdk.send(message, phones)
    
    def balance(self):
        return self.sdk.balance()

    def create_service(self, service_name:str, quota_sms:int, active_quota:bool, description:str):
        return self.sdk.create_service(service_name, quota_sms, active_quota, description)

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

reactsms_sdk_python-0.3.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

reactsms_sdk_python-0.3-py3-none-any.whl (2.9 kB view hashes)

Uploaded Python 3

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