vaksms


Namevaksms JSON
Version 0.3 PyPI version JSON
download
home_pagehttps://github.com/Pr0n1xGH/vaksms
SummaryVakSms API library
upload_time2023-06-01 19:51:57
maintainer
docs_urlNone
authorPrOn1x
requires_python>=3.6
licenseAGPL-3.0
keywords vak-sms sms api library
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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:
```shell
pip install vaksms
```

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

```python

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}")
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Pr0n1xGH/vaksms",
    "name": "vaksms",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "vak-sms sms api library",
    "author": "PrOn1x",
    "author_email": "prosto.nechyvak@yahoo.com",
    "download_url": "https://files.pythonhosted.org/packages/da/b4/b22a0422e6cae4328b4192f085bbdced57be0fe0bf1f17057375454de6f2/vaksms-0.3.tar.gz",
    "platform": null,
    "description": "# vaksms\r\n\r\nVakSms 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.\r\n\r\n## Installation\r\n\r\nYou can install the library using pip:\r\n```shell\r\npip install vaksms\r\n```\r\n\r\n## Usage\r\nGet apikey: https://vak-sms.com/api/vak/ <br>\r\nServices: https://vak-sms.com/api/vak/#serviceCodeList1 <br>\r\nCountres and operators: https://vak-sms.com/api/vak/#countryOperatorList1\r\n\r\n```python\r\n\r\nfrom vaksms import vaksms\r\n\r\n# Create an instance of the vaksms class with your API key\r\nvakapi = vaksms('your_apikey')\r\n\r\n# Get the user's balance\r\nbalance = vakapi.getBalance()\r\nprint(f\"Current balance: {balance} rub\")\r\n\r\n# Get the number of available numbers for a specific service\r\ncount = vakapi.getCountNumber('service_code')\r\nprint(f\"Available numbers: {count}\")\r\n\r\n# Get a temporary phone number\r\nnumber = vakapi.getNumber('service_code')\r\nprint(f\"Temporary number: {number}\")\r\n\r\n# Extend the duration of a previously received number\r\nextended_number = vakapi.prolongNumber('service_code', 'phone_number')\r\nprint(f\"Extended number: {extended_number}\")\r\n\r\n# Change the status of an operation ID\r\nstatus = vakapi.setStatus('operation_id', 'end')\r\nprint(f\"Status: {status}\")\r\n\r\n# Activate SMS code for a specific operation ID\r\nsms_code = vakapi.getSmsCode('operation_id')\r\nprint(f\"SMS code: {sms_code}\")\r\n```\r\n",
    "bugtrack_url": null,
    "license": "AGPL-3.0",
    "summary": "VakSms API library",
    "version": "0.3",
    "project_urls": {
        "Homepage": "https://github.com/Pr0n1xGH/vaksms"
    },
    "split_keywords": [
        "vak-sms",
        "sms",
        "api",
        "library"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9e88d57dbe28ddffc8b7b7bbe0b502a06f440d19a8d5b709db05c0e6890706e3",
                "md5": "078f24581a245d1d86ac4e3892dca336",
                "sha256": "a04f316bec5f5555625ddbbadf4b0747d210af4444462d07e7b76ddaadac5761"
            },
            "downloads": -1,
            "filename": "vaksms-0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "078f24581a245d1d86ac4e3892dca336",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 3584,
            "upload_time": "2023-06-01T19:51:54",
            "upload_time_iso_8601": "2023-06-01T19:51:54.478475Z",
            "url": "https://files.pythonhosted.org/packages/9e/88/d57dbe28ddffc8b7b7bbe0b502a06f440d19a8d5b709db05c0e6890706e3/vaksms-0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "dab4b22a0422e6cae4328b4192f085bbdced57be0fe0bf1f17057375454de6f2",
                "md5": "9a42197a50d036ce6b98e76e890dd806",
                "sha256": "5ff9a935a17cd2305e333b49276fc6ecc08741a1321f9080dd3673436ede9b56"
            },
            "downloads": -1,
            "filename": "vaksms-0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "9a42197a50d036ce6b98e76e890dd806",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 3500,
            "upload_time": "2023-06-01T19:51:57",
            "upload_time_iso_8601": "2023-06-01T19:51:57.200595Z",
            "url": "https://files.pythonhosted.org/packages/da/b4/b22a0422e6cae4328b4192f085bbdced57be0fe0bf1f17057375454de6f2/vaksms-0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-01 19:51:57",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Pr0n1xGH",
    "github_project": "vaksms",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "vaksms"
}
        
Elapsed time: 0.08291s