'WhatsApp Business API - Problem retrieving media with media Id
I have been trying to retrieve the media sent by user through WhatsApp business api, with the required authentication.
End Point: https://#############/v1/media/****************** Request: GET
But this is the kind of response I have been getting.
PK!ߤ�lZ [Content_Types].xml �(����n�0E�����Ub袪*�>�-R�{V��Ǽ��QU� l"%3��3Vƃ�ښl �w%�=���^i7+���-d&�0�A�6�l4��L60#�Ò�S O����X��*��V$z�3��3������%p)O�^����5}nH"d�s�Xg�L�`���|�ԟ�|�P�rۃs��?�PW��tt4Q+��"�wa���|T\y���,N���U�%���-D/��ܚ��X�ݞ�(����K/����4�Vm^u�r��w2NP�0ŮVw�5�j��o����7o:>S!?p����8JX[d�0KD��EVK���c2�P,���ũ�a���]���.���ﰘs�Yҡ�+�����(!O>z���PK!��g��� word/theme/theme1.xml�YK�G�����z��a�5�H�k�6���Rk���i��ڵ0�`�r ��C��B1��c�I���I3-�ď]� ��U?�������4s����:G��[=Wq��ؘ$aǽ}0,�\GH��e �,܋;�v�����8�:n$��|�,F0��96� �M���.�c��AoL˵J�Q�I\'A1��1��v�Jwg�|@�_"�Q��TcCBc�Ӫ�P�!�qa�1;>����P$$Lt܊�s�;�k!*dsrC���[ ��5-��õ���^��֯Tn��Ac�X��4�NS.��f-��(mZt���z�����]_}��Mo?� s���o��^��7�kP�llᛕn�kx �(I�[�ߨ�ݮ!F/[�m�6kKx�*�+�OdQ����Ch�"IG.fx�F�%��8�$� �f(a�+�ʰR������(:�QN:��!��#Nf��^�n��ŋ����|���Ǐ_>�u����e��y�7?}�
Facebook says to make this curl request
curl -X GET \
https://your-webapp-hostname:your-webapp-port/v1/media/4b5bf27b-8672-4d55-bc21-d096dc200d0f \
-H 'Authorization: Bearer your-auth-token' \
-o path/filename
And this works but is there any way to make this curl request using axios or has anybody worked with whatsapp business api and performed the following action.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
