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.2.tar.gz (3.5 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: vaksms-0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 dc235ba5d4adba0d7f80c3f6123665adbb7bc22681916fc7aeef50928803349b
MD5 9c5a9a5c0339e933e6ba1827f7c0e26a
BLAKE2b-256 bc1e6a750626873c9b8febad9100afbb51da0db7e0d1caf21ec6397e4fd1d245

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