https://github.com/blueromans/netgsm
NetGsm Python Package
https://github.com/blueromans/netgsm
netgsm netgsm-api netgsm-sms pypi pypi-package python python3 requests sms sms-client
Last synced: 6 months ago
JSON representation
NetGsm Python Package
- Host: GitHub
- URL: https://github.com/blueromans/netgsm
- Owner: blueromans
- License: mit
- Created: 2022-11-20T10:58:00.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-04-11T19:51:51.000Z (over 2 years ago)
- Last Synced: 2025-04-18T12:19:34.520Z (6 months ago)
- Topics: netgsm, netgsm-api, netgsm-sms, pypi, pypi-package, python, python3, requests, sms, sms-client
- Language: Python
- Homepage:
- Size: 11.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://pypi.python.org/pypi/NetGsm)
# NetGsm Python PyPackage
NetGsm is the most popular sms provider at Turkey. NetGsm client is a Python library to access services quickly.
## Installation
Use the package manager [pip](https://pip.pypa.io/en/stable/) to install foobar.
```bash
pip install NetGsm
```
## Environment Variables
```bash
NETGSM_USER_CODE: net gsm user code
NETGSM_USER_PASSWORD: net gsm user password
```
### Note
If you don't want to set this variables from global environment you can pass them to class.
You can see usage below
## Usage
```python
from netgsm import SmsService
kwargs = {
# you can also set user code from environment.
'user_code': 'net gsm user code', # Default value : None
# you can also set user password from environment.
'user_password': 'net gsm user password', # Default value : None
'api_url': 'net gsm api url' # Default value : 'https://api.netgsm.com.tr/sms/send/get'
}
sms_service = SmsService(**kwargs)
sms_service.send_sms(phone='Phone Number (5551234567)', message='Your Message', header='Your header')
# header default value : None if you don't pass this value your header is your user code
```
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
## License
[MIT](https://choosealicense.com/licenses/mit/)