Skip to main content

A package to simplify work with the sms-man API

Project description

python Python 3.6

This is a lightweight library that works as a connector to Sms-Man public API

Installation

pip install smsmanpy

Documentation

https://sms-man.com/site/docs-apiv2

RESTful APIs

Usage examples:

from smsmanpy import Smsman

#To receive an API key, you need to register on the sms-man.com website.
api_key = "api_key"

client = Smsman(api_key)

#  Get current balance
print(client.get_balance())

#  Get information about all services
print(client.get_all_services())

#  Get information about all countries
print(client.get_all_countries())

#  Get the number of numbers for the selected country and service
print(client.get_limits(country_id=1, application_id=1))

#  Buy new number
request_id, phone_number = client.request_phone_number(country_id=1,
                                                       application_id=1)
# Buy many numbers
print(client.request_phone_numbers(country_id=1,
                                   application_id=1,
                                   amount=10))

#  Receive a SMS to the number
sms_code = client.get_sms('request_id')

# Reject the number
print(client.reject_number('request_id'))

Contributing

Contributions are welcome.
If you've found a bug within this project, please open an issue to discuss what you would like to change.
If it's an issue with the API, please write it on out site Sms-man Feedback

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

smsmanpy-0.0.3.tar.gz (3.8 kB view details)

Uploaded Source

File details

Details for the file smsmanpy-0.0.3.tar.gz.

File metadata

  • Download URL: smsmanpy-0.0.3.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for smsmanpy-0.0.3.tar.gz
Algorithm Hash digest
SHA256 e9a9710669c5d321296f2d2b5a51b203d6cc69f691f37e73d6ef359a4ed112d6
MD5 496321cc28c244cb592eb473d1d5bab7
BLAKE2b-256 f34c16c8d1c2dbebd3224238d86a7f39bf121b59831758f0a5da662f9158d938

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