Code Monkey home page Code Monkey logo

emask-notifier's Introduction

emask-notifier

Introduction

Using the Nexmo API to make SMS message with specific phone number and user.

Emask Notifier Installation (Deprecated)

  • Set up a Nexmo account on Nexmo developer site
  • Creating phone.csv and locate this CSV file is with emask-notifier.sh on same directory.

And the format is as follows:

user_name,user_phone
  • Set api_key as a system environment variable with echo 'export api_key="{your_api_key}"' | sudo tee -a /etc/environment on /etc/environment file
  • Set api_secret as a system environment variable with echo 'export api_secret="{your_api_secret}"' | sudo tee -a /etc/environment on /etc/environment file
  • Using cd /path/to/emask-notifier/ && ./emask-notifier.sh as a Cronjob to let this Bash script do work automatically.
  • Done. Happy to do notification for your friends :)!

Emask Notifier Uninstallation (Deprecated)

  • Remove api_key system environment variable on /etc/environment file
  • Remove api_secret system environment variable on /etc/environment file
  • Remove this Cronjob work.

Emask Notifier for notifier.php Installation

  • Checking the supervisor, curl and cron commands have been available on deployed operating system.
  • PHP 7.4 has been installed on Ubuntu operating system.
  • Download composer.phar with curl -sS https://getcomposer.org/installer | php7.4 command.
  • Running php composer.phar update -n command.
  • Creating the .env to setup the VONAGE_API_KEY, VONAGE_API_SECRET, SENDER_EMAIL, RECIPIENT_EMAIL, MJ_APIKEY_PUBLIC and MJ_APIKEY_PRIVATE variables.
  • Creating the phone.csv to setup the user phone number lists.
  • Running the notifier_php_builder.sh script to setup all of above works.

Emask Notifier for notifier.php Uninstallation

  • We assume that this uninstallation work is running with non-root user.
  • Stopping notifier worker with sudo rm /etc/supervisor/conf.d/notifier-php.conf
  • Restarting supervisor service with sudo systemctl restart supervisor
  • Removing this repository with rm -rf /path/to/emask-notifier

emask-notifier's People

Contributors

peter279k avatar

Stargazers

 avatar

Watchers

 avatar  avatar

emask-notifier's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.