Getting file contents from API
Hello,
I am trying to get a files contents by making a curl request to https://api.box.com/2.0/files/{fileId}/content with that request I send an Authorization header that contains my Bearer token. When I get the response it shows:
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�ݞ�(���
..and it goes on for a while, but thats basically what the whole response looks like from that API response.
I guess my question boils down to how can I actually use this data to re-create the document in PHP without downloading the file?
Please sign in to leave a comment.
Comments
0 comments