Skip to content

Commit

Permalink
update README to support bringing own credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
wescpy committed Apr 20, 2020
1 parent a0ac079 commit 5bfcf6d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,21 @@ For command line use, install md2gslides globally:
npm install -g md2gslides
```

Then get your OAuth client ID credentials:
- Create (or reuse) a developer project at <https://console.developers.google.com>
- Enable Google Slides API at [API library page](https://console.developers.google.com/apis/library)
- Go to [Credentials page](https://console.developers.google.com/apis/credentials) and click "+ Create credentials" at the top
- Select "OAuth client ID" authorization credentials, choose "Other", and give it a name (or take the default)
- Download client credentials file... you'll be prompted with a long name like, `client\_secret\__LARGE-HASH_.json`, but simplify to `client_id.json` and save to `~/.md2googleslides`.

After installing, import your slides by running:

```sh
md2gslides slides.md
```

The first time the command is run you will be prompted for authorization. Credentials
will be stored locally in a file named `~/.credentials/md2gslides.json`.
The first time the command is run you will be prompted for authorization. OAuth token
credentials will be stored locally in a file named `~/.md2googleslides/credentials.json`.

## Supported markdown rules

Expand Down

0 comments on commit 5bfcf6d

Please sign in to comment.