随着Flash的结束,传统文件类型将在2020年12月消失。为避免中断,请开始将文件过渡到下一代。 学到更多

API for reading the data out of documents

已回答
0

评论

5 条评论

  • 正式评论
    Wayne Paffhausen

    Hi Harish Chhokra,

    All of our public APIs are posted here:  https://developers.workiva.com

    For working within documents this is the specific URL directly to that section:  https://developers.workiva.com/workiva-platform/reference/platform-documents

    Thank you!

  • Harish Chhokra

    Thanks for sharing. with the document link, I am able to connect to the document through API and were able to read the sections, however, the sections are not giving me data under each page on the document. so kindly prvide me a code sample to read each element of data into JSON format 

    0
  • Mike Thiesen

    Hello Harish

    Our public document APIs currently only support reading the section outline. We do not support reading section content yet. The APIs for reading section content are being actively developed, but still aren't ready for public use. If you urgently need to read section content and are willing to work with prototype APIs, I could put you in touch with the Workiva API Product Manager to see if we can get you access to the prototype APIs.

    0
  • Harish Chhokra

    Thanks for the insights on it. My only followup question for now is, can I use export feature to export the document and use some techncology read the content?  if answer is yes, can you please help me fixing the error I am facing while using export function from post API Call 

     

    0
  • Colleen Hardie

    To use this endpoint, you'll need to specify a DocumentExport object as the request body. Here's an example:

    {
      "format": "xhtml",
      "xhtmlOptions": {
          "editableXhtml": true
        }
    }

    In this example, I'm specifying xhtmlOptions, but you could instead specify docxOptions or pdfOptions if you preferred.

    There will be a Location header provided on the successful response which will have a 202 status code. Performing a GET against the URL from that Location header (something like https://api.app.wdesk.com/platform/v1/operations/17cbb20b-2c56-3d38-9d39-cc7a16af951c) will get you an Operation representing the status of the export. Once "completed", the operation will contain a resourceUrl that you can GET. This final GET will contain what you're looking for (e.g., in my case, an xhtml version of my Document).

    Hope this helps! 

    0

请先登录再写评论。