NetGsm Sms Client Python package
Project description
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 to install foobar.
pip install NetGsm
Environment Variables
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
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(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
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
NetGsm-0.0.3.tar.gz
(3.4 kB
view hashes)
Built Distribution
NetGsm-0.0.3-py3-none-any.whl
(4.0 kB
view hashes)