Skip to content

Commit 542861d

Browse files
committed
docs: embed usage example under unreleased #25 entry
1 parent 0f4d0a8 commit 542861d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Added
1111
- Allow `Switchbot::Client.new` to read `SWITCHBOT_API_TOKEN` and `SWITCHBOT_API_SECRET` when arguments are omitted. ([#25](https://github.com/ytkg/switchbot/pull/25))
12+
Usage:
13+
14+
```ruby
15+
ENV['SWITCHBOT_API_TOKEN'] = 'YOUR_TOKEN'
16+
ENV['SWITCHBOT_API_SECRET'] = 'YOUR_SECRET'
17+
client = Switchbot::Client.new
18+
```
1219

1320
## [0.8.0] - 2023-03-21
1421

0 commit comments

Comments
 (0)