Skip to content

Commit

Permalink
small fix to readme for auth
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertDeFusco committed Mar 30, 2021
1 parent c14bf8b commit d854530
Showing 1 changed file with 27 additions and 5 deletions.
32 changes: 27 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,15 @@ To load the catalog and list the tables

```python
import intake
catalog = intake.open_metabase_catalog(domain, username, password)
catalog = intake.open_metabase_catalog(domain, username=username, password=password)
list(catalog)
```

or using a session token

```python
import intake
catalog = intake.open_metabase_catalog(domain, token=token)
list(catalog)
```

Expand Down Expand Up @@ -66,8 +74,15 @@ Once you have all of the above information you can load a table as follows

```python
import intake
ds = intake.open_metabase_table(domain, username, password,
database, table)
ds = intake.open_metabase_table(domain, database, table, username=username, password=password)
df = ds.read()
```

or with a session token

```python
import intake
ds = intake.open_metabase_table(domain, database, table, token=token)
df = ds.read()
```
## Load a single question
Expand All @@ -88,8 +103,15 @@ You can generally determine the numeric id of the question you are interested in

```python
import intake
ds = intake.open_metabase_question(domain, username, password,
question)
ds = intake.open_metabase_question(domain, question, username=username, password=password)
df = ds.read()
```

or with a session token

```python
import intake
ds = intake.open_metabase_question(domain, question, token=token)
df = ds.read()
```

Expand Down

0 comments on commit d854530

Please sign in to comment.