API to send messages to WhatsApp - CURL

48 views
Skip to first unread message

Pablo Jalabert

unread,
Aug 31, 2023, 9:08:00 PM8/31/23
to [oohg]
Hello everyone.
I wanted to know if anyone is using any API to send messages to WhatsApp.
I know that for this you have to use the Curl libraries using Harbor.
I'm testing with Twilio and I can't use it well.
if you can give me a help.
The code in curl that is shown in the example in Twilio is the following
/*
//Send an outgoing WhatsApp message with free format
   EXCLAMATION_MARK='!'
   curl -X POST "https://api.twilio.com/2010-04-01/Accounts/$TWILIO_ACCOUNT_SID/Messages.json" \
   --data-urlencode "From=whatsapp:+14155238886" \
   --data-urlencode "Body=Hello, there$EXCLAMATION_MARK" \
   --data-urlencode "To=whatsapp:+15005550006" \
   -u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN
*/
Thank you
Pablo Jalabert
Hola a todos.
Quería saber si alguien está usando alguna API para enviar mensajes a WhatsApp.
Se que para esto hay que usar la librerías de Curl usando Harbour. 
Estoy haciendo pruebas con Twilio y no consigo usarlo bien.
si me pueden dar una ayuda.
El código en curl que muestra en ejemplo en Twilio es el siguiente
/*
//Envía un mensaje saliente de WhatsApp con formato libre
   EXCLAMATION_MARK='!'
   curl -X POST "https://api.twilio.com/2010-04-01/Accounts/$TWILIO_ACCOUNT_SID/Messages.json" \
   --data-urlencode "From=whatsapp:+14155238886" \
   --data-urlencode "Body=Hello, there$EXCLAMATION_MARK" \
   --data-urlencode "To=whatsapp:+15005550006" \
   -u $TWILIO_ACCOUNT_SID:$TWILIO_AUTH_TOKEN
*/
Gracias
Pablo Jalabert
Reply all
Reply to author
Forward
0 new messages