README.md in parcel_api-0.4.1 vs README.md in parcel_api-1.0.0
- old
+ new
@@ -48,11 +48,14 @@
config.client_id = ENV['CLIENT_ID']
config.client_secret = ENV['CLIENT_SECRET']
config.username = ENV['USERNAME']
config.password = ENV['PASSWORD']
config.address = 'https://api.uat.nzpost.co.nz/' # defaults to api.nzpost.co.nz
+ config.redis = Redis.new(url: 'redis://:p4ssw0rd@10.0.1.1:6380/15') # defaults to Redis.new
end
```
+
+Redis is currently required, Oauth2 `access_token`'s are cached in Redis and expired automatically. You can use an existing Redis connection.
Client connections can be passed to each method:
`ParcelApi::Address(client.connection)`