Тёмный

How to Download Media Files with WhatsApp Business API 

Vinix Academy
Подписаться 10 тыс.
Просмотров 13 тыс.
50% 1

Learn to download any media files (documents, videos, images, stickers or audios) that you receive using the WhatsApp Business API (Cloud version).
➡️ Try Wasapi for 7 days at no cost at: bit.ly/454ZlCw
➡️ If you want more information about the course (From Zero to Expert in the WhatsApp API), CLICK HERE » bit.ly/cursoApiWhatsApp
This is the ninth video of the video series in which we explore in detail the new Meta WhatsApp Business API to automate marketing operations, communicate with users and customers, among other things!
If you want to watch the entire playlist follow this link: • WhatsApp Business API
Links:
- WASAPI: bit.ly/454ZlCw
- API Documentation: / cloud-api
- Developer Account: developers.
Chapters:
0:00 What you'll learn
0:23 Sending test messages
2:01 Analyzing the requests body (webhook)
2:36 Downloading file with Media API
5:24 Storing file locally
6:58 Next steps

Опубликовано:

 

27 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 56   
@AliKibao
@AliKibao 10 месяцев назад
Precise and to the point. Thanks.
@desarrolladorrapido8767
@desarrolladorrapido8767 Год назад
Thanks brother, just what you need, in fact you have helped me in several things, you have excellent content.
@zakariajawas
@zakariajawas Год назад
Thank you for you time, this is very helpful
@rodrigo7089
@rodrigo7089 10 месяцев назад
Thank you Mr. It was really helpful.
@alphonsegs
@alphonsegs Год назад
Great work! Thanks
@1AmitGupta
@1AmitGupta Месяц назад
Thank you So much Brother, It helps a lot :)
@Audio.Library
@Audio.Library 2 месяца назад
Gracias!!! justo lo que no lograba entender...
@atuljain8305
@atuljain8305 24 дня назад
Thank You.
@akhileshtedlapu8053
@akhileshtedlapu8053 Год назад
That was very much helpful
@mista_ia
@mista_ia 7 месяцев назад
Consider that there is an image but the user tag it in a text reply, so you will basically have the `context` attribute present in the webhook request, then how would you retrieve the image based on that ? In the context, there is an `id` attribute, is it the message id? Are we able to retrieve from that ? Thanks for this video and in advance for reply!
@diegoberner1236
@diegoberner1236 7 месяцев назад
Yeah! It was so cool. You are the man
@aseelhaikal5396
@aseelhaikal5396 Год назад
thank you
@michael-cf1ps
@michael-cf1ps 27 дней назад
You the best Man!!
@denisdantes3473
@denisdantes3473 3 месяца назад
Thank you for the explanation. I see only examples sending messages using links, but dont see using upload document in base64 format. Do you have examples with this type of solution?
@user-uf1pe4qt8t
@user-uf1pe4qt8t Год назад
Thanks so much, i was stack at the response part and it was not clear what to do with the strange URL 😊😊
@user-in8yj7vx9h
@user-in8yj7vx9h 6 месяцев назад
Hola. Gracias por compartir. que recibe el servicio cuando le pones la url con el token?. que tipo de dato. Gracias.
@arsnakehert
@arsnakehert 9 месяцев назад
This is cool! I've gotten the audio file URL from a request in the media API, but my access token doesn't seem to work when I try to download the file... I'm probably screwing up something else
@ezz_dev
@ezz_dev 3 месяца назад
Do any of you know how to do it in a code with shared hosting server?
@ThoDaGeEtKuDunGi
@ThoDaGeEtKuDunGi Год назад
how do i can store this in python(django)
@davidedemarchi
@davidedemarchi Год назад
thankyou, but I cannot understand how to download media on my PC using an app in c# :(
@vishavjeetyadav8587
@vishavjeetyadav8587 Год назад
Hello Vinix code, I am working on WhatsApp api and your videos helped a lot. I need your guidance in "how to store fetched template data in a database so that i can have a demo in my webpage".
@VinixCode
@VinixCode Год назад
If you need to fetch the templates, use the API Vishavjeet: developers.facebook.com/docs/whatsapp/business-management-api/message-templates#retrieve-templates
@gtwashington1934
@gtwashington1934 Год назад
Please how can i store the fetched media file to a cloud storage space instead of locally?
@susheelramadoss
@susheelramadoss 11 месяцев назад
Did you find the answer to this ? I am not able to store the media to aws S3 bucket because the response.data is not valid for storing. How did you go about doing it ?
@gilboypd4564
@gilboypd4564 Месяц назад
വാട്ട് സ്ആപ്പ് Please
@venkimithu
@venkimithu 7 месяцев назад
I am using node js express and axios and getting the binray response. Please help me how to save the image to server folder.
@dkris3204
@dkris3204 4 месяца назад
i am doing the same now, did you figure it out ?
@user-uf1pe4qt8t
@user-uf1pe4qt8t Год назад
How do i await for the response of the actual image in php. am getting the image in postman but in php, it proving a challenge
@shinoypb6056
@shinoypb6056 5 месяцев назад
any solution?
@alonsoiduarte5442
@alonsoiduarte5442 Год назад
thank, I have problems to save the file with php curl, do you have a code to save the response?
@hirenbtpatel
@hirenbtpatel Год назад
Hello @alonsoiduarte5442 Did you find any solution for this ?
@alonsoiduarte5442
@alonsoiduarte5442 Год назад
@@hirenbtpatel yes, change to Curl by http_request y solved problem
@venkataswamybalaraju1072
@venkataswamybalaraju1072 Год назад
Hello Vinix Code, Awesome, I want save downloaded file to my local through Node JS code How I can do this? Please help me
@VinixCode
@VinixCode Год назад
Hey Ventaka. Postman lets you generate the code in Node.js for any request that you make. That will help you craft the code you need.
@kindsam
@kindsam Год назад
6:37 I am fetching the image in the nodeJs backend (API is returning the binary data of the image) and I want to display the image on ReactJs frontend. I have tried converting the binary data to base64 and then data URL format but it's not working. Can you me help out?
@kevinmege203
@kevinmege203 Год назад
Did you ever find a solution to your problem S4M?
@susheelramadoss
@susheelramadoss 11 месяцев назад
@@kevinmege203 Did you find a solution to this problem ?
@susheelramadoss
@susheelramadoss 11 месяцев назад
Did you find a resolution to this problem
@kevinmege203
@kevinmege203 11 месяцев назад
@@susheelramadoss Yes, indeed ! It was a misuse on my end of the node-fetch package. The simplest way I found to retrieve the base64 is to use the buffer method on the fetch response : const buffer = await response.buffer(); And then transform the buffer as a base64 : return buffer.toString('base64'); I got it working this way.
@AgbitorCosman
@AgbitorCosman 9 месяцев назад
@@kevinmege203 Don't you think it will be more efficient to write the file to some external storage (AWS S3, GCP Object storage, etc) and then pass the resulting url to your frontend?
@wellingtonsoares332
@wellingtonsoares332 Год назад
thanks you helped me a lot
@VinixCode
@VinixCode Год назад
Glad to hear that!
@durrer90
@durrer90 Год назад
Works in console like you showed but the php code just downloads a html file everytime...
@VinixCode
@VinixCode Год назад
Hi Jahema, I think you already have access to Wasapi! 😊
@ddljunkygames7654
@ddljunkygames7654 Год назад
@@VinixCode Hi, I found some working php code :) Thank you for your videos!
@makocs
@makocs Год назад
@@VinixCode plese send to me
@makocs
@makocs Год назад
@@ddljunkygames7654 plese send to me
@ddljunkygames7654
@ddljunkygames7654 Год назад
@@makocs and then just $file = fopen($filepath, 'w+'); fwrite($file, $raw); fclose($file);
@camiloramos8810
@camiloramos8810 Год назад
crack
@maheshbanala3848
@maheshbanala3848 Год назад
hi sir i am unable to getmedia id ifound the error like {"error":{"message":"An access token is required to request this resource.","type":"OAuthException","code":104,"fbtrace_id":"AcjVuw0lu4UECNBVv5ERMLd"}}-->1 please help me
@VinixCode
@VinixCode Год назад
Manesh, the error message tells you exactly what the problem is: you're not passing the access token in the header of the request.
Далее
WhatsApp API vs WhatsApp Business: Diferencias
13:46
Просмотров 87 тыс.
WhatsApp Webhooks Explained (Business Cloud API)
26:39
How To Connect OpenAI To WhatsApp (Python Tutorial)
30:31