(API) How to download your files from a PushPull - Pull
How to download files by PushPull Request of Pull type:
Instructions
First of All, you must create an PushPull of Type Pull, follow the link to do that: https://botdoc.atlassian.net/wiki/spaces/BOTDOC/pages/41812046 and send to the Receiver, when the Receiver uploads their files, you are able to download the file(s):
To Know how to download files coming from a Pull Request, first you need to GET a list of Media belonging to a determined Container:
curl -i --request GET "https://api.botdoc.io/v1/module_container_pushpull/media/?request={container_id}&pushpull__type=pull" \ --header "Authorization: JWT <Authorization Token>" \
Based on the list in item 1, you need to GET the Media using this cURL:
curl -i --request GET "https://api.botdoc.io/v1/module_container_pushpull/media/{media_id}/download/" \ --header "Authorization: JWT <Authorization Token>" \ --output myfile.jpg