/py-pulse-sms-api

A unofficial API for pulse-sms in python

Primary LanguagePythonMIT LicenseMIT

py-pulse-sms-api Python package

A unofficial API for pulse-sms in python.

Install

pip install git+https://github.com/perara-libs/py-pulse-sms-api.git

Usage

from pulsesms import PulseSMSAPI

api = PulseSMSAPI(username=os.getenv("PULSESMS_USERNAME"), password=os.getenv("PULSESMS_PASSWORD"))
api.login()

print(api.settings())
print(api.get_conversations())
print(api.get_unread_messages())
print(api.get_archived_messages())
print(api.scheduled_messages())
print(api.templates())
print(api.blacklists())
for conv in api.get_conversations():
    print(api.get_messages(conversation_id=conv["device_id"]))