text: import jwt
  
  from flask_restplus import Resource
  from flask import request, current_app
  
  from app.extensions import db, api
  from app.api.utils.access_decorators import requires_role_view_all, requires_role_mine_edit
  from app.api.utils.resources_mixins import UserMixin, ErrorMixin
  from app.api.utils.search import search_targets, append_result, execute_search, SearchResult
  from app.api.search.search_api_models import SEARCH_RESULT_RETURN_MODEL
  
  
  class CoreDashboardResource(Resource, UserMixin):
      @requires_role_view_all
      def get(self):
          payload = {
            "resource": {"dashboard": 136},
            "params": {
  
            }
          }
          token = jwt.encode(payload, current_app.config['METABASE_EMBEDDING_SECRET_KEY'], algorithm="HS256")
  
          dashboard_url = current_app.config['METABASE_SITE_URL'] + "/embed/dashboard/" + token.decode("utf8")
          return { 'dashboard_url': dashboard_url }
  