Socket
Socket
Sign inDemoInstall

moonheim-sms

Package Overview
Dependencies
3
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    moonheim-sms

Асинхронный модуль для работы с Moonheim SMS API


Maintainers
1

Readme

MoonheimSMS

An asynchronous Python module for interacting with the Moonheim SMS API. The MoonheimSMS package allows for easy integration of SMS functionalities into your Python applications, including sending SMS messages, checking message status, and querying account balance.

Features

  • Asynchronous API calls
  • Send SMS messages
  • Check the status of sent messages
  • Retrieve account balance

Installation

pip install moonheimsms

Quick Start

First, ensure you have `aiohttp` installed:

pip install aiohttp

Then, you can start using `MoonheimSMS` by importing it in your project:

from moonheimsms import MoonheimSMS

Usage

Initialize the Client

moonheim = MoonheimSMS(token="YOUR_API_TOKEN", proxy="YOUR_PROXY")

Sending an SMS

await moonheim.sendSms(
    phone="RECIPIENT_PHONE_NUMBER",
    sender_name="YOUR_SENDER_NAME",
    text="Hello, World!",
    type_=0,
    gateway=0,
    short_link=1
)

Checking SMS Status

status = await moonheim.checkSmsStatus(message_id="YOUR_MESSAGE_ID")
print(status)

Retrieving Account Balance

balance = await moonheim.getBalance()
print(balance)

Handling Exceptions

`MoonheimSMS` raises `InvalidPhoneNumber` if an invalid phone number is provided. Ensure to handle this exception in your code to manage such errors gracefully.

Contributing

We welcome contributions! Please open an issue or submit a pull request for any improvements.

License

This project is licensed under the Apache License 2.0. See the LICENSE file for details.

[!IMPORTANT] This package is not officially affiliated with Meow SMS. All trademarks belong to their respective owners.

Keywords

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc