Skip to content

Commit 8b30855

Browse files
committed
Update README.md
1 parent cd272ad commit 8b30855

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,13 @@ npm install @cityssm/green-button-subscriber
3636
```javascript
3737
import { GreenButtonSubscriber } from '@cityssm/green-button-subscriber'
3838

39+
const configuration = {
40+
baseUrl: 'https://greenbutton.example.com/',
41+
accessToken: '0123456789abcdef'
42+
}
43+
3944
// Pass the base URL, client ID, client secret, etc.
40-
const greenButtonSubscriber = new GreenButtonSubscriber(config)
45+
const greenButtonSubscriber = new GreenButtonSubscriber(configuration)
4146

4247
// Get the authorizations
4348
const greenButtonJson = await greenButtonSubscriber.getAuthorizations()

0 commit comments

Comments
 (0)