API to send messages to WhatsApp - CURL

387 views
Skip to first unread message

Pablo Jalabert

unread,
Aug 30, 2023, 8:01:06 AM8/30/23
to Harbour Minigui
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

Jayadev U

unread,
Sep 1, 2023, 12:49:28 AM9/1/23
to Harbour Minigui

Hi Pablo,

 

You may want to check out this article in Harbour group for sending Whatsapp messages.

 

https://groups.google.com/g/harbour-users/c/fNAgAJeYilE/m/Ua9roiECAgAJ

 

HTH,

 

Warm regards,

 

Jayadev

--
Visit our website on https://www.hmgextended.com/ or https://www.hmgextended.org/
---
You received this message because you are subscribed to the Google Groups "Harbour Minigui" group.
To unsubscribe from this group and stop receiving emails from it, send an email to minigui-foru...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/minigui-forum/CAGRnY3S9fnR%3DGrLLgApX4DjyCK8vj-CSaea52sD%3Dm3AY-DTzXQ%40mail.gmail.com.

Reply all
Reply to author
Forward
0 new messages