Skip to content

Commit 64b735f

Browse files
mattgridstainless-app[bot]
authored andcommitted
feat: docs: Explain how to use the API key
1 parent 65eac2f commit 64b735f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ The full API of this library can be found in [api.md](api.md).
2222
```js
2323
import Grid from '@grid-is/api';
2424

25-
const client = new Grid();
25+
const client = new Grid({
26+
// Defaults to process.env["GRID_API_KEY"]
27+
apiKey: "YOUR_API_KEY",
28+
});
2629

2730
async function main() {
2831
const response = await client.workbooks.query('YOUR_WORKBOOK_ID', {

0 commit comments

Comments
 (0)