
Security News
npm ‘is’ Package Hijacked in Expanding Supply Chain Attack
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
Python 2 & 3 compatible
.. image:: https://travis-ci.org/athenaslab/gabia-sms-Django.svg?branch=master :target: https://travis-ci.org/athenaslab/gabia-sms-Django/ .. image:: https://coveralls.io/repos/github/athenaslab/gabia-sms-Django/badge.svg?branch=master :target: https://coveralls.io/github/athenaslab/gabia-sms-Django?branch=master
<https://github.com/athenaslab/gabia-sms-Django>
_<https://pypi.python.org/pypi/gabia-sms-Django>
_<https://github.com/hwshim0810>
_You can install the library directly from pypi using pip:
.. code-block:: shell
$ pip install gabia-sms-Django
Edit your settings.py file:
.. code-block:: python
GABIA_SMS_SETTINGS = {
'SENDER': 'YOUR NUMBER',
'API_ID': 'YOUR API ID,
'API_KEY': 'YOUR API KEY'
}
Send sms message to use shortcut function
.. code-block:: python
import gabia_sms
try:
# Send single SMS
gabia_sms.send(message='message', receiver='will receive phone number')
except SMSModuleException:
print('SMS send failure')
.. code-block:: python
import gabia_sms
try:
# Reserve single SMS
gabia_sms.send(
message='message',
receiver='will receive phone number',
scheduled_time='2018-02-02 22:22:22'
)
# if not assign scheduled_time, send immediately
gabia_sms.send(
message='message',
receiver='will receive phone number'
)
# Send multiple SMS
gabia_sms.send(message='message', receiver=['phone number', '...'])
gabia_sms.send(message='message', receiver=('phone number', '...'))
# Reserve multiple SMS
gabia_sms.send(
message='message',
receiver=['phone number', '...'],
scheduled_time='2018-02-02 22:22:22'
)
# Cancel reservation
gabia_sms.cancel_reservation('Unique key', 'SMS type')
# Request result code
gabia_sms.get_send_result('Unique key')
except SMSModuleException:
print('SMS send failure')
Inherit SMS class, override post_sent_sms / before_send_sms
.. code-block:: python
import gabia_sms
class AdvancedSMSModule(gabia_sms.GabiaSMS):
def post_sms_sent(self, param, *args, **kwargs):
# ... Do what you need
def before_send_sms(self, param, *args, **kwargs):
# ... Do what you need
AdvancedSMSModule.send(message='message', receiver='will receive phone number')
or Use SingletonClass
.. code-block:: python
import gabia_sms
class AdvancedSMSModule(gabia_sms.SingletonGabiaSMS):
# ...
pass
See https://github.com/hwshim0810/gabia-sms-Django/graphs/contributors
FAQs
Send SMS messages to mobile devices through GABIA SMS api.
We found that gabia-sms-Django demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
Security News
A critical flaw in the popular npm form-data package could allow HTTP parameter pollution, affecting millions of projects until patched versions are adopted.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.