I am working on a Web connector Source to connect to Tableau and need help in saving the token from Auth API call into an Application Attribute.
Here is the response body from Auth call…
<?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 https://help.tableau.com/samples/en-us/rest_api/ts-api_3_18.xsd">
<credentials token="token_returned_from_api" estimatedTimeToExpiration="354:23:09">
<site id="<SITE_ID>" contentUrl="<content_url>"/>
<user id="<USER_ID>"/>
</credentials>
</tsResponse>
Now, I need to store the token_returned_from_api
into an application attribute named authToken
Any help will be appreciated