dumps ( parameters_, ensure_ascii = False ) ) url += '?parameters=' response = self. DataFrame : url = '/api/card/' + str ( id ) + '/query/json' if params is not None : parameters = for iparam in params : parameters_ = parameters. getenv ( "METABASE_PASSWORD" ) ) def getQuestionToDf ( self, id : int, params : List = None ) -> pd. collectionposition value may be nil, or if non-nil, value must be an integer greater than zero. description value may be nil, or if non-nil, value must be a non-blank string. Set the embedding-secret-key Setting to a hexadecimal-encoded 32-byte sequence (i.e., a 64-character string). PARAMS: visualizationsettings value must be a map. The endpoints are the same as the ones in api/public/, and differ only in the way they are authorized. camsaul changed the title Document the public REST API Document the REST API on Oct 24, 2016. getenv ( "METABASE_EMAIL" ), password = os. Databases v0.47 Api Embed Embed Various endpoints that use JSON web tokens to fetch Cards and Dashboards. camsaul closed this as completed on Oct 24, 2016. getenv ( "METABASE_DOMAIN" ), email = os. Louis November 25, 2021, 9:37am 1 Hi, Id like to get the results from a Metabase question (that has a required filter) using the API. var_value : Union = var_value class MetabaseConnector : def _init_ ( self ): self. var_type : MbVariableType = var_type self. From metabase_api import Metabase_API from enum import Enum from typing import List, Union import pandas as pd import json import os class MbVariableType ( Enum ): NUMBER = 'number' DATE = 'date/single' TEXT = 'category' class MaVariable : def _init_ ( self, var_name : str, var_type : MbVariableType, var_value : Union ): self.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |