Skip to main content
Trevor Hunt 님이 #Tableau APIs & Embedding에 질문했습니다

I'm running into a problem I've been staring at for a bit... I'm attempting to authenticate via the REST api to Tableau Online so I can pull together some details on the data sources and connections used in various workbooks. I'm using an account I've created, granted site admin permissions, configured to authenticate via TableauID, and confirmed I can authenticate directly, but am still unable to get authenticated via the REST API.

 

Any help would be appreciated. I'm sure it's something staring me in the face.

 

Here's what I'm using to authenticate and the response I currently receive. Any guidance is appreciated!

 

Example Tableau Online URL

https://our.tableau.online.hostname/#/site/<contenturl>/workbooks

 

CALL

POST https://our.tableau.online.hostname/api/2.4/auth/signin

 

BODY

<tsRequest>

  <credentials name="<admin user name>" password="<admin pw>">

    <site contentUrl="<contenturl>" />

      </credentials>

</tsRequest>

 

RESPONSE

<?xml version='1.0' encoding='UTF-8'?>

<tsResponse xmlns="http://tableau.com/api" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://tableau.com/api http://tableau.com/api/ts-api-2.4.xsd">

    <error code="401001">

        <summary>Signin Error</summary>

        <detail>Error signing in to Tableau Server</detail>

    </error>

</tsResponse>

 

Message was edited by: Trevor Hunt

답변 7개
  1. 2016년 12월 14일 오전 12:11

    Hello Trevor,

     

    i was travelling earlier so I was not able to provide a more detailed response.

     

    I used postman to test an authentication. my site is on 10ay and its siteid is tableauonlinerocks so I posted the request to https://10ay.online.tableau.com/api/2.4/auth/signin

     

    The request is:

     

    <tsRequest

    <credentials name="myemail@example.com" password="mypwd" >

    <site contentUrl="tableauonlinerocks" />

    </credentials>

    </tsRequest>