whatsapp-cloud-api
whatsapp-cloud-api copied to clipboard
receive image and save it
Hello everyone, is it possible to save an image that the user sends?
data: { mime_type: 'image/jpeg', sha256: '7P5nRXlN6yADTMqgDrqzycfaNWsddEQHOtHGN6hZxM4=', id: '5512756692174447' }
I don't understand how to do it thanks
I found it
curl
'https://graph.facebook.com/v15.0/MEDIA_ID'
-H 'Authorization: Bearer ACCESS_TOKEN'
later
curl
'URL'
-H 'Authorization: Bearer ACCESS_TOKEN' > media_file
now i will make a function
Glad you solved it! @jkupovic
What does a solution look like? ... I'm assuming it doesn't involve calling curl
...