We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97927df commit 0f4d0a8Copy full SHA for 0f4d0a8
README.md
@@ -22,7 +22,13 @@ Or install it yourself as:
22
```ruby
23
require 'switchbot'
24
25
+# pass token and secret directly
26
client = Switchbot::Client.new('YOUR_TOKEN', 'YOUR_SECRET')
27
+
28
+# or use environment variables
29
+ENV['SWITCHBOT_API_TOKEN'] = 'YOUR_TOKEN'
30
+ENV['SWITCHBOT_API_SECRET'] = 'YOUR_SECRET'
31
+client = Switchbot::Client.new
32
```
33
34
For v0.6.0 and below, refer to [README-v0.6.0-and-below.md](https://github.com/ytkg/switchbot/blob/main/README-v0.6.0-and-below.md).
0 commit comments