Skip to content

Commit

Permalink
Factor import
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdsgl committed Nov 25, 2023
1 parent 94f16cb commit 459d690
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,26 @@
# Glide Tables Client

## Setup

Install package:

```shell
npm install @glideapps/tables
```

Import it:

```ts
import * as glide from "@glideapps/tables";
```

## Authorization

Set `GLIDE_TOKEN` environment variable or pass the token as props.

## Apps

```ts
import * as glide from "@glideapps/tables";

// List all apps
const apps = await glide.getApps();

Expand All @@ -28,8 +40,6 @@ const users = await myApp.getTableNamed("Users");
## Tables

```ts
import * as glide from "@glideapps/tables";

const inventory = glide.table({
// App and table IDs
app: "bAF...Dgn",
Expand Down

0 comments on commit 459d690

Please sign in to comment.