mirror of
https://github.com/exituser/prosto-sms-python.git
synced 2026-09-17 06:09:03 +00:00
35 lines
473 B
Markdown
35 lines
473 B
Markdown
# prosto-sms | API python wrapper
|
|
|
|
## TODO
|
|
- tests
|
|
------
|
|
|
|
## Install
|
|
```shell
|
|
python -m pip install prosto_sms
|
|
```
|
|
------
|
|
|
|
## Examples
|
|
### Auth by key and get profile data:
|
|
```python
|
|
import prosto_sms
|
|
|
|
api = prosto_sms.api.API(
|
|
key="bd...5bb"
|
|
)
|
|
|
|
print(api.methods.get_profile())
|
|
```
|
|
|
|
### Auth by creds and get profile data:
|
|
```python
|
|
import prosto_sms
|
|
|
|
api = prosto_sms.api.API(
|
|
email="me@chydo.dev",
|
|
password="password"
|
|
)
|
|
|
|
print(api.methods.get_profile())
|
|
``` |