Skip to content

Instantly share code, notes, and snippets.

@renat473
Created December 24, 2018 15:57
Show Gist options
  • Save renat473/093a3e9c9e972ccb2e20e48abe8c0d6d to your computer and use it in GitHub Desktop.
Save renat473/093a3e9c9e972ccb2e20e48abe8c0d6d to your computer and use it in GitHub Desktop.
Wpp em Massa
#!/bin/bash
######################################################################
# FUNÇÃO SCRIPT.: ENVIAR WHATSAPP MARKERTING #
# #
#------------------------------------------------------------------- #
# DEPENDÊNCIAS.:.. #
# 1-criar o arquivo numero.csv #
# 2-entre apas duplas colocar a msg que sera enviado #
# #
# DESENVOLVIMENTO.: RENATO SIQUEIRA #
# EMAIL.: RENATO.473@GMAIL.COM #
# DATA CRIACAO.: 24/12/2018 #
# VERSAO.: 1.0 #
# #
######################################################################
LOGFILE="/tmp/whatsapp.log"
HORA=$(date +%d/%m/%Y\ %H:%M:%S)
lista_numero="numero.csv"
clear
for arq in `cat $lista_numero`; do
curl -d '{"phone": "'$arq'","body": "Teste De Envio"}' -H "Content-Type: application/json" -X POST https://foo.chat-api.com/message?token=83763g87x
done
echo "$HORA – Mensagem: $MSG - Enviada para: $arq" >> ${LOGFILE}
echo -e " \033[41;1;37m PROCESSO REALIZADOO COM SUCESSO! \033[0m"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment