I tipi di file classici non potranno più essere utilizzati a partire da gennaio 2021. È possibile effettuare la transizione dei file classici o scaricare un PDF. Ulteriori informazioni

API for reading the data out of documents

Con risposta
0

Commenti

5 commenti

  • Commento ufficiale
    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

Accedi per aggiungere un commento.