eskiz-pkg


Nameeskiz-pkg JSON
Version 1.4 PyPI version JSON
download
home_pagehttps://github.com/Muhammadali-Akbarov/eskiz-pkg
SummaryNone
upload_time2025-01-05 07:12:30
maintainerNone
docs_urlNone
authorMuhammadali Akbarov
requires_pythonNone
licenseMIT
keywords eskiz sms smspy eskizuz eskiz-pkg sms-service smsuz
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Integration Eskiz.uz SMS Provider
Support by Telegram - http://t.me/muhammadali_me <br>

```
$ pip install eskiz-pkg
```
### Credentials
```
URL: https://notify.eskiz.uz/api/
Email: test@eskiz.uz
Password: j6DWtQjjpLDNjWEk74Sx
```

## Docs
   * [Auth](#auth)
   * [Refresh Token](#refresh-token)
   * [Send SMS](#send-sms)
## Auth
Example for auth get token:

Request

```
from eskiz.client.sync import ClientSync

eskiz_client = ClientSync(
    email="test@eskiz.uz",
    password="j6DWtQjjpLDNjWEk74Sx",
)

resp = eskiz_client.login()
print(resp)
```
Response
```
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MjA4NTQ5NTUsImlhdCI6MTcxODI2Mjk1NSwicm9sZSI6InVzZXIiLCJzaWduIjoiNjU5OWQ1MWU4ZjU0NTFmMjc3OTQ1MTA3N2NmMzdmMTMxM2QzYjkzMDk1Y
```
## Refresh Token
Example for refresh token:

Request

```
from eskiz.client.sync import ClientSync

eskiz_client = ClientSync(
    email="test@eskiz.uz",
    password="j6DWtQjjpLDNjWEk74Sx",
)

resp = eskiz_client.refresh_token()
print(resp)
```
Response

```
eyJleHAiOjE3MjA4NTQ5NTUsImlhdCI6MTcxODI2Mjk1NSwicm9sZSI6InVzZXIiLCJzaWduIjoiNjU5OWQ1MWU4ZjU0NTFmMjc3OTQ1MTA3N2NmMzdmMTMxM2QzYjkzMDk1Y
```
## Send SMS
Example for send SMS:

Request

```
from eskiz.client.sync import ClientSync

eskiz_client = ClientSync(
    email="test@eskiz.uz",
    password="j6DWtQjjpLDNjWEk74Sx",
)

text = "Hello from Python"

resp = eskiz_client.send_sms(
    phone_number=998888351717,
    message=text
)

print(resp)
```
Response

```
id='e837dec2-2f5a-44a9-a1d1-6fcc13e94d86' message='Waiting for SMS provider' status='waiting'
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Muhammadali-Akbarov/eskiz-pkg",
    "name": "eskiz-pkg",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "eskiz sms smspy eskizuz eskiz-pkg sms-service smsuz",
    "author": "Muhammadali Akbarov",
    "author_email": "muhammadali17abc@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/97/d5/e5802c4b2f079558f633c43d57390d9c8a4d239b5096e2678c8ebb0ccc91/eskiz_pkg-1.4.tar.gz",
    "platform": null,
    "description": "# Integration Eskiz.uz SMS Provider\nSupport by Telegram - http://t.me/muhammadali_me <br>\n\n```\n$ pip install eskiz-pkg\n```\n### Credentials\n```\nURL: https://notify.eskiz.uz/api/\nEmail: test@eskiz.uz\nPassword: j6DWtQjjpLDNjWEk74Sx\n```\n\n## Docs\n   * [Auth](#auth)\n   * [Refresh Token](#refresh-token)\n   * [Send SMS](#send-sms)\n## Auth\nExample for auth get token:\n\nRequest\n\n```\nfrom eskiz.client.sync import ClientSync\n\neskiz_client = ClientSync(\n    email=\"test@eskiz.uz\",\n    password=\"j6DWtQjjpLDNjWEk74Sx\",\n)\n\nresp = eskiz_client.login()\nprint(resp)\n```\nResponse\n```\neyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MjA4NTQ5NTUsImlhdCI6MTcxODI2Mjk1NSwicm9sZSI6InVzZXIiLCJzaWduIjoiNjU5OWQ1MWU4ZjU0NTFmMjc3OTQ1MTA3N2NmMzdmMTMxM2QzYjkzMDk1Y\n```\n## Refresh Token\nExample for refresh token:\n\nRequest\n\n```\nfrom eskiz.client.sync import ClientSync\n\neskiz_client = ClientSync(\n    email=\"test@eskiz.uz\",\n    password=\"j6DWtQjjpLDNjWEk74Sx\",\n)\n\nresp = eskiz_client.refresh_token()\nprint(resp)\n```\nResponse\n\n```\neyJleHAiOjE3MjA4NTQ5NTUsImlhdCI6MTcxODI2Mjk1NSwicm9sZSI6InVzZXIiLCJzaWduIjoiNjU5OWQ1MWU4ZjU0NTFmMjc3OTQ1MTA3N2NmMzdmMTMxM2QzYjkzMDk1Y\n```\n## Send SMS\nExample for send SMS:\n\nRequest\n\n```\nfrom eskiz.client.sync import ClientSync\n\neskiz_client = ClientSync(\n    email=\"test@eskiz.uz\",\n    password=\"j6DWtQjjpLDNjWEk74Sx\",\n)\n\ntext = \"Hello from Python\"\n\nresp = eskiz_client.send_sms(\n    phone_number=998888351717,\n    message=text\n)\n\nprint(resp)\n```\nResponse\n\n```\nid='e837dec2-2f5a-44a9-a1d1-6fcc13e94d86' message='Waiting for SMS provider' status='waiting'\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": null,
    "version": "1.4",
    "project_urls": {
        "Homepage": "https://github.com/Muhammadali-Akbarov/eskiz-pkg"
    },
    "split_keywords": [
        "eskiz",
        "sms",
        "smspy",
        "eskizuz",
        "eskiz-pkg",
        "sms-service",
        "smsuz"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8160cf536a0e22a64e15ea8737c145d4ea13d27fb0d768f8c40c915e08e0b065",
                "md5": "00194f0f806a4e1cafaace4c152c30d2",
                "sha256": "f14725080b99566be45cb0c342af1522c3684072c95d528700d3a733d8e5f1fd"
            },
            "downloads": -1,
            "filename": "eskiz_pkg-1.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "00194f0f806a4e1cafaace4c152c30d2",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 7232,
            "upload_time": "2025-01-05T07:12:28",
            "upload_time_iso_8601": "2025-01-05T07:12:28.699829Z",
            "url": "https://files.pythonhosted.org/packages/81/60/cf536a0e22a64e15ea8737c145d4ea13d27fb0d768f8c40c915e08e0b065/eskiz_pkg-1.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "97d5e5802c4b2f079558f633c43d57390d9c8a4d239b5096e2678c8ebb0ccc91",
                "md5": "5b9fcf257e588b69a541ba54e6a23fb2",
                "sha256": "38f5659ccfa6f8906e9c87194f158237199e7f4618dfb804fc411449bfaa0aa1"
            },
            "downloads": -1,
            "filename": "eskiz_pkg-1.4.tar.gz",
            "has_sig": false,
            "md5_digest": "5b9fcf257e588b69a541ba54e6a23fb2",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 5332,
            "upload_time": "2025-01-05T07:12:30",
            "upload_time_iso_8601": "2025-01-05T07:12:30.962286Z",
            "url": "https://files.pythonhosted.org/packages/97/d5/e5802c4b2f079558f633c43d57390d9c8a4d239b5096e2678c8ebb0ccc91/eskiz_pkg-1.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-05 07:12:30",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Muhammadali-Akbarov",
    "github_project": "eskiz-pkg",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "eskiz-pkg"
}
        
Elapsed time: 2.45288s