Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dangowans committed Sep 20, 2023
1 parent cd272ad commit 8b30855
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,13 @@ npm install @cityssm/green-button-subscriber
```javascript
import { GreenButtonSubscriber } from '@cityssm/green-button-subscriber'

const configuration = {
baseUrl: 'https://greenbutton.example.com/',
accessToken: '0123456789abcdef'
}

// Pass the base URL, client ID, client secret, etc.
const greenButtonSubscriber = new GreenButtonSubscriber(config)
const greenButtonSubscriber = new GreenButtonSubscriber(configuration)

// Get the authorizations
const greenButtonJson = await greenButtonSubscriber.getAuthorizations()
Expand Down

0 comments on commit 8b30855

Please sign in to comment.