🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis
Socket
Book a DemoInstallSign in
Socket

aiosmsactivate

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aiosmsactivate

Python asyncio wrapper for sms-activate.io API

pipPyPI
Version
1.5.1
Maintainers
1

AioSmsActivate

AioSmsProviders - aiosmsactivate

SMS-ACTIVATE Official documentation

ДОКУМЕНТАЦИЯ DOCUMENTATION

Getting Started

Simple usage

from aiosmsactivate import SmsActivate
from aiosmsactivate.types import SetActivationStatus

import asyncio


sa = SmsActivate('token')

async def main():
    balance = await sa.get_balance()
    print(balance) # 6.25
    
    number = await sa.purchase('ya')
    number.activation_id # 3807035855
    number.phone_number # '79238944456'
    number.operator # 'mtt'
    print(number)
    # activation_id=3809954454 phone_number='79927146212' activation_cost=0.2 
    # country_code='0' can_get_another_sms=True activation_time='2025-07-09 01:14:45' 
    # operator='mtt' activation_unix_time=1654093857
    
    code = await number.wait_sms_code(timeout=300)
    print(code) # 1234
    
    status = await number.get_activation_status()
    
    await number.set_activation_status(SetActivationStatus.CANCEL) # Отменить номер || Cancel number
    await number.set_activation_status(8) # Отменить номер || Cancel number

    service = await sa.get_service('ya', 0) # 0 it is ru country
    print(service)
    # code='ya' name='Yandex/Uber' country='0' 
    # price=0.115 retail_price=0.2 free_price_map={'0.3067': 17134, '0.3065': 16996, ...} 
    # count=11049 physical_count=5334
    
asyncio.run(main())

Keywords

api

FAQs

Did you know?

Socket

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