ojy0216 / textfy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

License:MIT License


Languages

Language:Python 100.0%