This is a InterSystems IRIS Interoperability solution.
- Sends an SMS message to a mobile number
- Verify Mobile number by SMS code
Make sure you have git and Docker desktop installed.
Open IRIS Namespace with Interoperability Enabled. Open Terminal and call: USER>zpm "install iris-sms"
Clone/git pull the repo into any local directory
$ git clone https://github.com/Vassil2010/iris-sms.git
Open the terminal in this directory and run:
$ docker-compose build
- Run the IRIS container with your project:
$ docker-compose up -d
-
To create an account on https://dashboard.nexmo.com/sign-in
-
Get API key and API Secret
-
Add Credentials http://localhost:{port}/csp/irisapp/EnsPortal.Credentials.zen
3.1. ID = "nexmo"
3.2. User Name - API key
3.3. Password - API Secret
-
Add the Admin user in Workflow users
-
Start production bondar.irissms.Production
- For send SMS:
w ##class(bondar.irissms.Test).SendSms("79620000000", "Hello world!")
- For Verify mobile number:
w ##class(bondar.irissms.Test).VerifyNumber("79620000000")
2.1.) Sends a verification code to a mobile number
2.2.) Creates a Workflow task for entering the verification code
2.3.) The business operation checks the code