• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
1

Document Generation API not responding with Azure BLOB storage

New Here ,
Sep 20, 2023 Sep 20, 2023

Copy link to clipboard

Copied

I am trying to use the Document Generation API from Adobe, using a external storage (blob storage azure) I am following the guide, but am receiving no response when I post to the API

I am trying to use the Document Generation API from Adobe, which takes request body:

 

{
  "input": {
    "uri": "",
    "storage": "BLOB"
  },
  "output": {
    "uri": "",
    "storage": "BLOB"
  },
  "params": {
    "outputFormat": "pdf",
    "jsonDataForMerge": {
      "customerName": "Kane Miller",
      "customerVisits": 100,
      "itemsBought": [
        {
          "name": "Sprays",
          "quantity": 50,
          "amount": 100
        },
        {
          "name": "Chemicals",
          "quantity": 100,
          "amount": 200
        }
      ],
      "totalAmount": 300,
      "previousBalance": 50,
      "lastThreeBillings": [
        100,
        200,
        300
      ],
      "photograph": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP88h8AAu0B9XNPCQQAAAAASUVORK5CYII="
    }
  }
}

 

 

This is the example shown by Adobe, except I have changed the storage to Blob as I am using Azure. I have made 2 blob storage containers, one contains the template in word format, and the other a blank storage for output. For the request body input, I have generated a SAS Token and URL, and put the URL in the uri request for the input. For the Output, I have generated a SAS token of the empty container, and put the URL in the uri request. When I try to post this data, It doesn't return anything. Am I understanding the input and output of the request body wrong? why am I not getting any response from the API?

I have already added the correct Header params, of authorization and x-api-key 
 

 

TOPICS
Document Generation API , General , PDF Services API , REST APIs

Views

197

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation
Resources