README.md in onfido-0.6.1 vs README.md in onfido-0.7.0
- old
+ new
@@ -35,9 +35,15 @@
```ruby
api = Onfido::API.new
```
+Alternatively, you can set an API key here instead of in the initializer:
+
+```ruby
+api = Onfido::API.new(api_key: 'API_KEY')
+```
+
### Resources
All resources share the same interface when making API calls. Use `.create` to create a resource, `.find` to find one, and `.all` to fetch all resources.
**Note:** *All param keys should be a symbol e.g. `{ type: 'express', reports: [{ name: 'identity' }] }`*