Skip to main content

Asynchronous Python SDK for AnyMessage email service

Project description

AnyMessage asynchronous API wrapper

Docs: https://anymessage.shop/docs

Install

pip install anymessage-sdk
poetry add anymessage-sdk

Basic methods

import asyncio
from anymessage import AnyMessageClient

async def main():
    client = AnyMessageClient(token="your_token_here")
    
    balance = await client.get_balance()
    print(balance)  # {'status': 'success', 'balance': '1.0'}
    
    email_quantity = await client.get_email_quantity(site="instagram.com")
    print(email_quantity)  # {'status': 'success', 'data': {...}}

asyncio.run(main())

Order, get, and cancel email methods

import asyncio
from anymessage import AnyMessageClient

async def main():
    client = AnyMessageClient(token="your_token_here")
    
    # Заказать email
    email = await client.order_email(site="instagram.com", domain="gmx")
    print(email)  # {'status': 'success', 'id': '1001', 'email': 'test@gmx.com'}
    
    # Получить сообщение
    message = await client.get_message(id=email.id, preview=False)
    print(message)  # {'status': 'success', 'message': '<html>...</html>'}
    
    # Отменить email
    cancel = await client.cancel_email(id=email.id)
    print(cancel)  # {'status': 'success', 'value': 'activation canceled'}

asyncio.run(main())

Reorder email methods

import asyncio
from anymessage import AnyMessageClient

async def main():
    client = AnyMessageClient(token="your_token_here")
    
    # Перезаказать email по ID
    reordered = await client.reorder_email(id="1001")
    print(reordered)  # {'status': 'success', 'id': '1002', 'email': 'test@gmx.com'}
    
    # Перезаказать email по email и сайту
    reordered = await client.reorder_email(email="test@gmx.com", site="instagram.com")
    print(reordered)  # {'status': 'success', 'id': '1003', 'email': 'test@gmx.com'}

asyncio.run(main())

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

anymessage-0.1.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

anymessage-0.1.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file anymessage-0.1.0.tar.gz.

File metadata

  • Download URL: anymessage-0.1.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.10.9 Windows/10

File hashes

Hashes for anymessage-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4be9157f5617c8c49d9a54eec71ca3e4a07e694a937412ed5efaeb0552d3753a
MD5 87264b0dd43c642157ae6d3a7005c942
BLAKE2b-256 36e3657a4395868caf66ddeb4ecc8916d801ce5e90d3aad297afe99943d43bec

See more details on using hashes here.

File details

Details for the file anymessage-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: anymessage-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.10.9 Windows/10

File hashes

Hashes for anymessage-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4075b81894d0bda6e20d2c7c4bd421a79d018c08003bcff38f4e98ca666a1a65
MD5 a050c3b8b1fb9c860cbad37a94dcd58a
BLAKE2b-256 f1722a814903fff4eb7b59b439c1c2318d9c57b3fe9b87f520fcb81e1ce34705

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page