Skip to content

Latest commit

 

History

History
52 lines (26 loc) · 2.76 KB

File metadata and controls

52 lines (26 loc) · 2.76 KB

Task 4 - Download the OBJ file

Before you download the OBJ file you must make sure that the translation job is complete. In the previous task you captured the URN of the OBJ file that was generated in a variable named dv_urn_0

Obtain Signed Cookie

Signed cookies give you the ability to securely download the generated OBJ file for a short period of time. To obtain the download URL and signed cookies for the OBJ file:

  1. In the Postman sidebar, click Task 4 - Download OBJ File > GET Obtain Signed Cookie. The request loads.

    Note the use of the Postman environment variables t1_url_safe_urn_of_source and dv_urn_0 as URI parameters.

  2. Click the Headers tab. Notice that the Authorization header is already defined.

    Obtain Signed Cookie

  3. Click Send. You should see a screen similar to the following image.

    Notice how the response body contains the download URL. A script in the Tests tab captures the download URL to the ContentDownloadSignedURL Postman environment variable.

    Obtained Cookie

  4. Click on the Response Headers tab. Notice how the response contains 3 header parameters named set-cookie. A script in the Tests saves the values of these parameters to the set-cookie-header_1, set-cookie-header_2 and set-cookie-header_3 environment variables.

    Response Headers

Download OBJ File

Now you have obtained the download URL and signed cookie, you can download the OBJ file now. To download the OBJ file:

  1. In the Postman sidebar, click Task 4 - Download OBJ File > GET Download OBJ File. The request loads.

    Note the use of the variable ContentDownloadSignedURL as the URI.

  2. Click the Headers tab. Notice that the Cookie header is made up of set-cookie-header_1, set-cookie-header_2 and set-cookie-header_3

    Cookie Headers Download

  3. Click Send. You should see a screen similar to the following image. In the response area, click Save Response > Save to a file. Save the file as box.obj, when prompted.

    Download Result

Congratulations! You have completed this tutorial.

To display the saved file:

  • If you are using an Apple Macintosh, right-click box.obj in Finder and select Quick Look from the menu.

  • If you are using Windows, right-click box.obj in Windows Explorer and select Open with > 3D Viewer from the menu.

◀️