curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Re: query

From: danielcorrente--- via curl-users <curl-users_at_lists.haxx.se>
Date: Mon, 28 Nov 2022 18:29:38 -0300

whatsapp link:
https://developers.facebook.com/docs/whatsapp/cloud-api/get-started?locale=es_LA#sent-test-message

my errors:


 
From: Dan Fandrich via curl-users
Date: 2022-11-28 17:31
To: curl-users
CC: Dan Fandrich
Subject: Re: query
On Mon, Nov 28, 2022 at 04:23:13PM -0300, danielcorrente--- via curl-users wrote:
> what changes should i make to make it work in curl for windows ?
 
You don't say in what way it doesn't work.
 
> it's a whatsapp message from api cloud,
>
> curl -i -X POST `
 
Drop the -X; it's superfluous.
 
> https://graph.facebook.com/v15.0/113037868294137/messages `
> -H 'Authorization: Bearer mi_code_here' `
> -H 'Content-Type: application/json' `
> -d '{ \"messaging_product\": \"whatsapp\", \"to\": \"543465651891\", \"type\
> ": \"template\", \"template\": { \"name\": \"hello_world\", \"language\": { \
> "code\": \"en_US\" } } }'
 
Are you sure the quoting is correct? Try adding -v and see what quotes curl is
actually sending.
--
Unsubscribe: https://lists.haxx.se/listinfo/curl-users
Etiquette: https://curl.se/mail/etiquette.html

-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-users
Etiquette:   https://curl.se/mail/etiquette.html

CatchD458.jpg
(image/jpeg attachment: CatchD458.jpg)

Received on 2022-11-28