1 Reply Latest reply on Mar 26, 2018 2:07 PM by Irwin Dolobowsky

    How to download the workbook as twbx through the rest api?

    xinyu zhou

      I have been able to download the workbook in twb format using java api, here is the code:

      Response response = webTarget

        .request().accept(MediaType.APPLICATION_XML)

        .header(TABLEAU_AUTH_HEADER, credential.getToken())

        .get();

       

      But I could not download it as twbx. What should I change other than the accepted MediaType?

      Response response = webTarget

        .request().accept(MediaType.APPLICATION_OCTET_STREAM)

        .header(TABLEAU_AUTH_HEADER, credential.getToken())

        .get();