WhatsApp / SMS / Push Message

Need new test, action, option? Post request here.
Post Reply
AndreT78
Posts: 15
Joined: Wed Feb 05, 2020 5:28 am

WhatsApp / SMS / Push Message

Post by AndreT78 »

Hi,

Does anyone know a way to send warning messages from the host monitor via SMS (Germany) or WhatApp.

Thanks
Greetings
Andre
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Re: WhatsApp / SMS / Push Message

Post by KS-Soft »

SMS: use Send SMS (GSM) action with GSM modem (cell phone) connected to HostMonitor system
https://www.ks-soft.net/hostmon.eng/mfr ... htm#actSMS

SMS: or you may use Send SMS (SMPP) action. In this case you need contract with some SMPP service provider
https://www.ks-soft.net/hostmon.eng/mfr ... tm#actsmpp

WhatsAPP: theoretically HTTP Request action can be used but we did not test it with WhatsAPP
https://www.ks-soft.net/hostmon.eng/mfr ... tm#actHTTP
You need Meta Business Account, HTTP request may look like

Code: Select all

Host: https://graph.facebook.com
Port: 443

Request:
POST https://graph.facebook.com/v18.0/FROM_PHONE_NUMBER_ID/messages HTTP/1.1
Host: hgraph.facebook.com
Content-Type: application/json
Authorization: ACCESS_TOKEN

'messaging_product': 'whatsapp',
'to': '1650XXXXXXX',
'text': {'body': 'TestName:%TestName%
Status: %Status%
Reply: %Reply%
Recurrences: %Recurrences%'}
You need to set correct phone number ID, recipient's phone, access token

Regards
Alex
Post Reply