/textfy

Primary LanguagePythonMIT LicenseMIT

Textfy

  • Send SMS message using "Twilio"

How to use

  1. Using decorator
  • Wrap function with decorator @Textfy()
  • Wrapped function needs to return a dictionary which contains message body to send
  • When using decorator, it will also sends the execution time of the function
  1. Using function
  • Call send_msg() function
  • send_msg() function receives message to send

Example

  1. Using decorator

  2. Using function