Skip to main content

SMSMAN Public API Python

Python 3.6 License: MIT

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

Installation

pip install smsman

Documentation

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

RESTful APIs

Usage examples:

from smsman.smsman import Smsman

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)

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

Referral program

Detailed conditions of the affiliate program:

  1. The referral program was created exclusively to stimulate and the dissemination of information about the sms-man.com
  2. Each registered user sms-man.com can take part in the referral program.
  3. The number of invited users by one user - unlimited
  4. The inviting user is called the referrer, and the invited user is called the referral
  5. The referrer who invited a new active referral receives 3% of the costs of the referral
  6. The maximum amount of referral deductions from one referral is limited to $10. Upon reaching this amount accruals are suspended.
  7. Referral funds are withdrawn within 24 hours of the application. The minimum withdrawal amount is $5. Transfer to sms-man.com account is carried out instantly and without commission.
  8. The sms-man.com administration has the right to refuse to pay funds if facts of fake up invited users or other cases of abuse of the referral program are established.

How do I use the referral program in the API?

Find your referral code here

from smsman.smsman import Smsman

api_key = ""
ref_code = ""

client = Smsman(api_key, ref_code)

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smsman-1.0.3.tar.gz (5.1 kB view details)

Uploaded Source

File details

Details for the file smsman-1.0.3.tar.gz.

File metadata

  • Download URL: smsman-1.0.3.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.2

File hashes

Hashes for smsman-1.0.3.tar.gz
Algorithm Hash digest
SHA256 af48c363006d04ad4460f2142e678b4b0893c06b4d330f0a04c1114e0e159a38
MD5 0b68e7bdd6d17d194618696ee32f9739
BLAKE2b-256 cd87cca15c1cf3e312e116e8f2b41afb0615eb0b29457bba90e3bc41645a672c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.3 This release

1 file

1.0.2

1 file

1.0.1

1 file

1.0.0

1 file

0.0.10

1 file

0.0.9

1 file

0.0.8

1 file

0.0.7

1 file

0.0.6

1 file

0.0.5

1 file

0.0.4

1 file

0.0.3

1 file

0.0.2

1 file

0.0.1

1 file

Supported by

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