使用 PHP 的 Tableau 可信身份验证票证

时间:2021-02-10 15:06:42

标签: php curl tableau-api

我试图了解可信身份验证票证是如何与 PHP 一起使用的。我一直在寻找不同的问题并想出了这个代码

$url = 'https://tableau.godigitally.io/trusted/';     
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);    
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);    
curl_setopt($ch, CURLOPT_POST, true);     
curl_setopt($ch, CURLOPT_POSTFIELDS, "username=" . $userid . ""); // define what you want to post    
$response = curl_exec($ch);   
curl_close($ch);   
//echo 'Test: ' . $response;  
echo '<iframe src=', $url, $ticket, 'views/Dashboard2_0/Dashboard1?', $urlparams, '" 
       width="700" height="400">   
  </iframe>';

但是当我运行此代码时出现以下错误 enter image description here

我不知道我哪里出错了。我已使用 https://help.tableau.com/current/server/en-us/trusted_auth_testing.htm

中描述的测试技术确认我的服务器配置是正确的

0 个答案:

没有答案