Script that run a foreach CURL for each contact in a CSV list -- 2
$10-30 USD
Completed
Posted almost 4 years ago
$10-30 USD
Paid on delivery
I have a list with phone number and Name in CSV.
I need to run this CURL request to all the list, replacing {{first_name}} and {{phone_number}} each time. So this message is sent to all the list of the CSV.
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'access-token: eyJhbGciOiJIUzUxMiJ9.eyJidXNpbmVzc0lkIjoiSG9nYXJkZUNyaXN0byIsIm5hbWUiOiJWaWNlbnRlIEJhcnJvcyIsImFwaSI6dHJ1ZSwiaWQiOiJIdWlRNG1zUU5hYXNMS3VqWkk3MmtwZWhlNW8xIiwiZXhwIjoxNzUwMzA1NTYxLCJqdGkiOiJIdWlRNG1zUU5hYXNMS3VqWkk3MmtwZWhlNW8xIn0.xfKTuGNf4TvEf8lZwhE7XhzuKD0RStYp1x7OYBhvManLAhW_QIJwLUKA6V918UFVF4MnthulBM7IAr2ax4VTEQ' -d '{ \
"chatPlatform": "whatsapp", \
"chatChannelNumber": "56941117148", \
"platformContactId": "{{phone number}}", \
"ruleNameOrId": "bienvenida", \
"params": {"headerImageUrl" : "[login to view URL]", \
"primer_nombre" : "{{First_name}}"} \
}' '[login to view URL]'