Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
archiewood committed Oct 24, 2024
1 parent e9226e2 commit 2cbf45e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ This extension, GSheets, allows you to read and write to Google Sheets using Duc
## Usage

```sql
-- Create a secret with your Google API access token
CREATE SECRET test_secret (TYPE gsheet, TOKEN '<your_token>');
-- Authenticate with Google Account in the browser (easiest)
CREATE SECRET (TYPE gsheet, PROVIDER oauth);

-- OR create a secret with your Google API access token (see below guide)
CREATE SECRET (TYPE gsheet, TOKEN '<your_token>');

-- Read a sheet by full URL
FROM read_gsheet('https://docs.google.com/spreadsheets/d/11QdEasMWbETbFVxry-SsD8jVcdYIT1zBQszcF84MdE8/edit');
Expand Down

0 comments on commit 2cbf45e

Please sign in to comment.