README.md in bootic_client-0.0.18 vs README.md in bootic_client-0.0.19
- old
+ new
@@ -37,11 +37,11 @@
```
### Using with an existing access token
```ruby
-bootic = BooticClient.client(:authorized, access_token: 'beidjbewjdiedue...', logging: true)
+bootic = BooticClient.client(:authorized, access_token: 'beidjbewjdiedue...')
root = bootic.root
if root.has?(:all_products)
# All products
@@ -131,9 +131,15 @@
### 4. Bearer token
This strategy adds an access token as a header in the format `Authorization: Bearer <your-token-here>`.
It will not try to refresh an expired token from an Oauth2 server, so there's no need to configure Oauth2 credentials.
+
+```ruby
+client = BooticClient.client(:bearer, access_token: 'foobar')
+
+root = client.root # etc
+```
Use this with APIs that don't expire tokens, or for testing.
## Non GET links