Skip to main content

Librería de integración de servicio de mensajeria Hablame

Project description

HABLAME CONNECT

Librería de integración de servicio de mensajeria Hablame con django.

Instalación:

$ pip install Hablame

ó

$ pipenv install Hablame

Añadir la linea

'Hablame'

settings.py en las installed_apps proyecto de django

USO

Constructor(
client string,
api string

)

Methods
  • Send_SMS(

      receiver number,
      message string,
      propagation_date datetime (Opcional)
      reference string (Opcional)
    

    )

    en caso de que propagation_date no se pase por parametro el mensaje se enviara de manera inmediata.

Ejemplo

from SY_Hablame from Hablame

instance = Hablame("client_key", "api_Key") response = instanse.Send_SMS("Receiver_number", "Message")

print(response)

Respuesta

{ "cliente": "10012336", "lote_id": 0, "fecha_recepcion": "2019-10-10 11:06:41", "resultado": 0, "resultado_t": null, "sms_procesados": 1, "referencia": null, "ip": "190.7.130.162", "sms": { "1": { "id": "1570723601789199", "numero": "573116400205", "sms": "hola", "fecha_envio": "2019-10-10 11:06:41", "ind_area_nom": "Colombia Celular", "precio_sms": "6.00000", "resultado_t": "", "resultado": "0" } } }

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

Hablame-0.4.tar.gz (2.0 kB view hashes)

Uploaded Source

Built Distribution

Hablame-0.4-py3-none-any.whl (1.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page