Skip to main content

VakSms API library

Project description

vaksms

VakSms is a Python library that provides an API for interacting with the vak-sms.com service. It allows you to perform various operations such as getting the user's balance, retrieving available phone numbers, renting temporary phone numbers, activating SMS codes, and more.

Installation

You can install the library using pip:

pip install vaksms

Usage

Get apikey: https://vak-sms.com/api/vak/
Services: https://vak-sms.com/api/vak/#serviceCodeList1
Countres and operators: https://vak-sms.com/api/vak/#countryOperatorList1

from vaksms import vaksms

# Create an instance of the vaksms class with your API key
vakapi = vaksms('your_apikey')

# Get the user's balance
balance = vakapi.getBalance()
print(f"Current balance: {balance} rub")

# Get the number of available numbers for a specific service
count = vakapi.getCountNumber('service_code')
print(f"Available numbers: {count}")

# Get a temporary phone number
number = vakapi.getNumber('service_code')
print(f"Temporary number: {number}")

# Extend the duration of a previously received number
extended_number = vakapi.prolongNumber('service_code', 'phone_number')
print(f"Extended number: {extended_number}")

# Change the status of an operation ID
status = vakapi.setStatus('operation_id', 'end')
print(f"Status: {status}")

# Activate SMS code for a specific operation ID
sms_code = vakapi.getSmsCode('operation_id')
print(f"SMS code: {sms_code}")

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

vaksms-0.3.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

vaksms-0.3-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file vaksms-0.3.tar.gz.

File metadata

  • Download URL: vaksms-0.3.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for vaksms-0.3.tar.gz
Algorithm Hash digest
SHA256 5ff9a935a17cd2305e333b49276fc6ecc08741a1321f9080dd3673436ede9b56
MD5 9a42197a50d036ce6b98e76e890dd806
BLAKE2b-256 dab4b22a0422e6cae4328b4192f085bbdced57be0fe0bf1f17057375454de6f2

See more details on using hashes here.

File details

Details for the file vaksms-0.3-py3-none-any.whl.

File metadata

  • Download URL: vaksms-0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for vaksms-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a04f316bec5f5555625ddbbadf4b0747d210af4444462d07e7b76ddaadac5761
MD5 078f24581a245d1d86ac4e3892dca336
BLAKE2b-256 9e88d57dbe28ddffc8b7b7bbe0b502a06f440d19a8d5b709db05c0e6890706e3

See more details on using hashes here.

Supported by

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