Socket
Socket
Sign inDemoInstall

aiosmsru

Package Overview
Dependencies
2
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    aiosmsru

(A)sync client for sms.ru with pydantic responses


Maintainers
1

Readme

🚧 aioSMSru

  • Send SMS
  • Check SMS status
  • Get SMS cost
  • Get balance
  • Get limit
  • Get free limit
  • Get my senders
  • Check api_id or login and password
  • Add to stoplist
  • Remove from stoplist
  • Get stoplist
  • Add callback
  • Remove callback
  • Get callbacks
  • Callcheck

🧑‍💻 How to use

I gave an example for an async client, but sync is no different, you just don't need to use await. Get satisfaction 😌

from smsru import AioSMSru, SMSru

client = AioSMSru("app_id")

async def main():
    print(await client.sms_cost("79991398805", "I'm in serious shit"))
    
    # 79991398805 and 79956896018 <- I feel totally lost
    scend = await client.send_sms(
        recipients=['79991398805', '79956896018'],
        messages="I feel totally lost"
    )
    print(await client.check_sms([m_id for m_id in sensed.sms.keys()]))
    
    # 79991398805 <- If i'm asking for help
    # 79956896018 <- it's only because
    scend = await client.send_sms(
        recipients=['79991398805', '79956896018'],
        messages=["If i'm asking for help", "it's only because"]
    )
    
    call = await client.callcheck('79991398805')
    print(call.code == input("Last 4 digits of incoming call number: "))

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