Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

First of All, you must create an P2 containing a type Pull, follow the link to do that: (API) Sending your first requests - P2 and send to the Receiver, when the Receiver uploads their files, you are able to download the file(s):

  1. To Know how to download files coming from a P2 Pull Request, first you need to GET a list of Media belonging to a determined Pull:

    Code Block
    languagejson
    curl -i --request GET '"https://sandboxapiapi.botdoc.io/v1/module_container_pull/pull/{pull_id}/pull_file/'" \
    --header "Authorization: JWT <Authorization Token>" \

  2. Based on the list in item 1, you need to GET the Media using this cURL:

    Code Block
    languagejson
    curl -i --request GET "https://sandboxapiapi.botdoc.io/v1/module_container_pull/pullfile/{pull_file_id}/download/" \
    --header "Authorization: JWT <Authorization Token>" \
    --output myfile.jpg