Hi every body,
I am trying to publish a question with php 7.4
But i got error Token is missing value for keypath [:resource :dashboard]
Here's my code
include 'vendor/autoload.php';
$metabaseSiteUrl = '###';
$metabaseSecretKey = '###';
$signer = new \Lcobucci\JWT\Signer\Hmac\Sha256();
$token = (new \Lcobucci\JWT\Builder())
->set('resource', ['question' => 72])
->set('params', ['param' => ''])
->sign($signer, $metabaseSecretKey)
->getToken();
$iframeUrl = "$metabaseSiteUrl/embed/dashboard/$token#bordered=true&titled=true";
echo "<iframe src='".$iframeUrl."' frameborder='0' width='100%' height='800' allowtransparency></iframe>";
Before i tried publish a dashboard and it was success to create panel but error to show data.
Thanks in advance